From 50f63d05be34c63fad22b5c7ced9dae2b2611cca Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sun, 10 Mar 2019 01:37:13 +0100 Subject: Remove INKSCAPE_PORTABLE_PROFILE_DIR Please use the (functionally identical) INKSCAPE_PROFILE_DIR instead. See also https://gitlab.com/inkscape/inkscape/issues/114 --- src/io/resource.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/io/resource.cpp') 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); -- cgit v1.2.3