From: Colin Clark Date: Sun, 22 Aug 2021 13:48:09 +0000 (+0100) Subject: Cache maintenance - paths with spaces not handled X-Git-Tag: v1.7~69 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=9da9205376a70042af68341386e00de3fbf43828 Cache maintenance - paths with spaces not handled In the cache maintenance function, put double quotes around the path variable. --- diff --git a/src/cache_maint.c b/src/cache_maint.c index 3e96bcb4..2b551a8c 100644 --- a/src/cache_maint.c +++ b/src/cache_maint.c @@ -1626,12 +1626,12 @@ static void cache_manager_cache_maintenance_start_cb(GenericDialog *fd, gpointer } else { - log_printf("The specified folder can not be found: %s\n", path); + log_printf("The specified folder can not be found: \"%s\"\n", path); } } else { - cmd_line = g_strdup_printf("%s --cache-maintenance %s", gq_executable_path, path); + cmd_line = g_strdup_printf("%s --cache-maintenance \"%s\"", gq_executable_path, path); g_spawn_command_line_async(cmd_line, NULL);