From 626fdf971bb406c019bec1e70de2d62999ba19d6 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 15 Jan 2015 17:18:32 -0800 Subject: [PATCH] Set GI_TYPELIB_PATH to include /self This allows the app to load bundled GI typelibs without special hacks. --- xdg-app-helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xdg-app-helper.c b/xdg-app-helper.c index c9ec871a..7eea84ec 100644 --- a/xdg-app-helper.c +++ b/xdg-app-helper.c @@ -1232,6 +1232,7 @@ main (int argc, xsetenv ("LD_LIBRARY_PATH", "/self/lib", 1); xsetenv ("XDG_CONFIG_DIRS","/self/etc/xdg:/etc/xdg", 1); xsetenv ("XDG_DATA_DIRS", "/self/share:/usr/share", 1); + xsetenv ("GI_TYPELIB_PATH", "/self/lib/girepository-1.0", 1); xdg_runtime_dir = strdup_printf ("/run/user/%d", getuid()); xsetenv ("XDG_RUNTIME_DIR", xdg_runtime_dir, 1); free (xdg_runtime_dir);