summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2014-05-10 08:11:01 +0000
committerJazzyNico <nicoduf@yahoo.fr>2014-05-10 08:11:01 +0000
commit7e2ba3db2f8ff62444843af7983d59eff629151c (patch)
treeb739c9998eead6b4420d7a59bf42660504a41170
parentDocumentation. Fix for bug #1317140 (supported generic font names in trunk ha... (diff)
downloadinkscape-7e2ba3db2f8ff62444843af7983d59eff629151c.tar.gz
inkscape-7e2ba3db2f8ff62444843af7983d59eff629151c.zip
Adding new INKSCAPE_PROFILE_DIR environment variable (see bug #1247448, environment variable INKSCAPE_PORTABLE_PROFILE_DIR should be documented in man page).
Fixed bugs: - https://launchpad.net/bugs/1247448 (bzr r13346)
-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