From 7e2ba3db2f8ff62444843af7983d59eff629151c Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Sat, 10 May 2014 10:11:01 +0200 Subject: 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) --- src/inkscape.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/inkscape.cpp') 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 -- cgit v1.2.3