summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a40869)
raw | patch | inline | side by side (parent: 4a40869)
author | joncruz <joncruz@users.sourceforge.net> | |
Thu, 4 Jun 2009 08:27:33 +0000 (08:27 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Thu, 4 Jun 2009 08:27:33 +0000 (08:27 +0000) |
src/inkscape.cpp | patch | blob | history |
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index f1e2c1684c47554eb38a29d1f53efdb8adc1463f..60ab895ede7789bf05f082b957aaf1f017375f40 100644 (file)
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
profile_path(const char *filename)
{
static const gchar *prefdir = NULL;
+
+
if (!prefdir) {
+ // First check for a custom environment variable for a "portable app"
+ gchar const *val = g_getenv("INKSCAPE_PORTABLE_PROFILE_DIR");
+ if (val) {
+ prefdir = g_strdup(val);
+ }
+
#ifdef HAS_SHGetSpecialFolderLocation
// prefer c:\Documents and Settings\UserName\Application Data\ to
// c:\Documents and Settings\userName\;