app: Do not create separate local data dir on macOS

Closes #13079

We don't know if ~/Library/Caches (NSCachesDirectory) is
the practical equivalent of $XDG_CACHE_HOME on Linux or
%LocalAppData% on Windows so let's just drop 3.00 for now.
This commit is contained in:
Bruno Lopes 2025-06-27 12:36:39 -03:00
parent 51547d427a
commit d055c0fbd1
No known key found for this signature in database

View file

@ -446,8 +446,8 @@ gimp_macos_setenv (const char * progname)
g_free (tmp);
if (g_getenv ("HOME") != NULL)
{
tmp = g_strdup_printf ("%s/Library/Application Support/GIMP/3.00/cache",
g_getenv ("HOME"));
tmp = g_strdup_printf ("%s/Library/Application Support/GIMP/%s/cache",
g_getenv ("HOME"), GIMP_APP_VERSION);
g_setenv ("XDG_CACHE_HOME", tmp, TRUE);
g_free (tmp);
}