summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-03-30 21:46:47 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-03-30 21:46:47 +0000
commitd8c3ca3181470ca18f1cc9ccffebced82f2fc510 (patch)
tree6759cc2e0145649cdf38598285d7ae1922500c64 /src
parentRemove "PACKAGE_LOCALE_DIR" environment variable (diff)
downloadinkscape-d8c3ca3181470ca18f1cc9ccffebced82f2fc510.tar.gz
inkscape-d8c3ca3181470ca18f1cc9ccffebced82f2fc510.zip
Usage of get_program_dir() is more appropriate here
It points at the same folder currently, but this will change with https://gitlab.com/inkscape/inkscape/issues/82
Diffstat (limited to 'src')
-rw-r--r--src/inkscape-main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inkscape-main.cpp b/src/inkscape-main.cpp
index aab94542e..beb632fbd 100644
--- a/src/inkscape-main.cpp
+++ b/src/inkscape-main.cpp
@@ -43,7 +43,7 @@ static void set_extensions_env()
#ifdef _WIN32
// add inkscape directory to DLL search path so dynamically linked extension modules find their libraries
// should be fixed in Python 3.8 (https://github.com/python/cpython/commit/2438cdf0e932a341c7613bf4323d06b91ae9f1f1)
- gchar *installation_dir = g_win32_get_package_installation_directory_of_module(NULL);
+ gchar *installation_dir = get_program_dir();
wchar_t *installation_dir_w = (wchar_t *)g_utf8_to_utf16(installation_dir, -1, NULL, NULL, NULL);
SetDllDirectoryW(installation_dir_w);
g_free(installation_dir);