Commit f6350e1b authored by Michael Natterer's avatar Michael Natterer

libgimp: need to expand config->swap_path in gimp_config()

or the file system will be polluted with folders called

(cherry picked from commit cc835e87)
parent b06ffe43
......@@ -2294,6 +2294,9 @@ gimp_loop (void)
static void
gimp_config (GPConfig *config)
GFile *file;
gchar *path;
if (config->version < GIMP_PROTOCOL_VERSION)
g_message ("Could not execute plug-in \"%s\"\n(%s)\n"
......@@ -2337,6 +2340,9 @@ gimp_config (GPConfig *config)
gimp_cpu_accel_set_use (config->use_cpu_accel);
file = gimp_file_new_for_config_path (config->swap_path, NULL);
path = g_file_get_path (file);
g_object_set (gegl_config (),
"tile-cache-size", config->tile_cache_size,
"swap", config->swap_path,
......@@ -2345,6 +2351,9 @@ gimp_config (GPConfig *config)
"application-license", "GPL3",
g_free (path);
g_object_unref (file);
if (_shm_ID != -1)
#if defined(USE_SYSV_SHM)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment