summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 54451aba4..4b4c8c678 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -1445,6 +1445,11 @@ profile_path(const char *filename)
if (val) {
prefdir = g_strdup(val);
}
+ // Then check for a custom user environment variable
+ gchar const *userenv = g_getenv("INKSCAPE_PROFILE_DIR");
+ if (userenv) {
+ prefdir = g_strdup(userenv);
+ }
#ifdef HAS_SHGetSpecialFolderLocation
// prefer c:\Documents and Settings\UserName\Application Data\ to