[gimp] gimp_macos_setenv: set GI_TYPELIB_PATH macos



commit 6821636a7b3a7bd69bf8979b66739f00864bebb2
Author: Lukas Oberhuber <lukaso gmail com>
Date:   Fri Dec 3 10:14:35 2021 +0000

    gimp_macos_setenv: set GI_TYPELIB_PATH macos
    
    This sets the GI_TYPELIB_PATH so that macOS
    gobject-introspection can find the typelib files.

 app/main.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/app/main.c b/app/main.c
index e3bfa93531..ff8d684f72 100644
--- a/app/main.c
+++ b/app/main.c
@@ -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",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]