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

or the file system will be polluted with folders called
"${gimp_cache_path}".
This commit is contained in:
Michael Natterer
2018-12-04 19:41:06 +01:00
parent 2168d91cf7
commit cc835e877d

View File

@ -2141,6 +2141,9 @@ gimp_loop (void)
static void
gimp_config (GPConfig *config)
{
GFile *file;
gchar *path;
_tile_width = config->tile_width;
_tile_height = config->tile_height;
_shm_ID = config->shm_ID;
@ -2163,6 +2166,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,
@ -2171,6 +2177,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)