diff options
Diffstat (limited to 'src/io/resource.cpp')
| -rw-r--r-- | src/io/resource.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/io/resource.cpp b/src/io/resource.cpp index ff934b2c5..7d41acf65 100644 --- a/src/io/resource.cpp +++ b/src/io/resource.cpp @@ -375,14 +375,8 @@ char *profile_path(const char *filename) { static const gchar *prefdir = nullptr; - 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); - } - // Then check for a custom user environment variable + // Check if profile directory is overriden using environment variable gchar const *userenv = g_getenv("INKSCAPE_PROFILE_DIR"); if (userenv) { prefdir = g_strdup(userenv); |
