[polari] main: Set up correct typelib/library path



commit 7755faa84fd925b8e88b5550347bc6a4050cd44a
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Feb 7 15:51:57 2021 +0100

    main: Set up correct typelib/library path
    
    Currently it doesn't matter that the search path we set doesn't match
    the install location of the typelib, as imports.package sets up the
    correct paths for us later.
    
    However that will stop working when we switch to ES modules for imports,
    so prepare for that by setting up the correct paths.
    
    https://gitlab.gnome.org/GNOME/polari/-/merge_requests/176

 src/polari.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/polari.c b/src/polari.c
index 4455b2ad..48c24608 100644
--- a/src/polari.c
+++ b/src/polari.c
@@ -82,7 +82,8 @@ main (int argc, char *argv[])
   g_set_application_name ("Polari");
 #endif
 
-  g_irepository_prepend_search_path (PKGLIBDIR);
+  g_irepository_prepend_search_path (PKGLIBDIR "/girepository-1.0");
+  g_irepository_prepend_library_path (PKGLIBDIR);
 
   context = g_object_new (GJS_TYPE_CONTEXT,
                           "search-path", search_path,


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