libgimp: need to expand config->swap_path in gimp_config()
or the file system will be polluted with folders called
"${gimp_cache_path}".
(cherry picked from commit cc835e877d)
This commit is contained in:
parent
b06ffe4334
commit
f6350e1b5a
1 changed files with 9 additions and 0 deletions
|
|
@ -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",
|
||||
NULL);
|
||||
|
||||
g_free (path);
|
||||
g_object_unref (file);
|
||||
|
||||
if (_shm_ID != -1)
|
||||
{
|
||||
#if defined(USE_SYSV_SHM)
|
||||
|
|
|
|||
Loading…
Reference in a new issue