[gimp] macos env: Fix #7567, crash on new and open dialog
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] macos env: Fix #7567, crash on new and open dialog
- Date: Thu, 2 Dec 2021 00:04:10 +0000 (UTC)
commit b0547a72c6b6fae3630ed089a9090ff43dc94af2
Author: Lukas Oberhuber <lukaso gmail com>
Date: Wed Dec 1 23:12:44 2021 +0000
macos env: Fix #7567, crash on new and open dialog
Fixes https://gitlab.gnome.org/GNOME/gimp/-/issues/7567
app/main.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/app/main.c b/app/main.c
index d385509f44..e3bfa93531 100644
--- a/app/main.c
+++ b/app/main.c
@@ -390,6 +390,12 @@ gimp_macos_setenv (const char * progname)
tmp = g_strdup_printf ("%s/share/libwmf/fonts", res_dir);
g_setenv ("WMF_FONTDIR", tmp, TRUE);
g_free (tmp);
+ if (g_getenv ("XDG_DATA_DIRS"))
+ tmp = g_strdup_printf ("%s/share:%s", res_dir, g_getenv ("XDG_DATA_DIRS"));
+ else
+ tmp = g_strdup_printf ("%s/share", res_dir);
+ g_setenv ("XDG_DATA_DIRS", tmp, TRUE);
+ g_free (tmp);
if (g_getenv ("HOME") != NULL)
{
tmp = g_strdup_printf ("%s/Library/Application Support/GIMP/3.00/cache",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]