gimp_macos_setenv: set GI_TYPELIB_PATH macos

This sets the GI_TYPELIB_PATH so that macOS
gobject-introspection can find the typelib files.
This commit is contained in:
Lukas Oberhuber 2021-12-03 10:14:35 +00:00
parent 5ca9a38ea4
commit 6821636a7b
1 changed files with 3 additions and 0 deletions

View File

@ -396,6 +396,9 @@ gimp_macos_setenv (const char * progname)
tmp = g_strdup_printf ("%s/share", res_dir);
g_setenv ("XDG_DATA_DIRS", tmp, TRUE);
g_free (tmp);
tmp = g_strdup_printf ("%s/lib/girepository-1.0", res_dir);
g_setenv ("GI_TYPELIB_PATH", tmp, TRUE);
g_free (tmp);
if (g_getenv ("HOME") != NULL)
{
tmp = g_strdup_printf ("%s/Library/Application Support/GIMP/3.00/cache",