mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-19 14:22:18 -04:00
Set GI_TYPELIB_PATH to include /self
This allows the app to load bundled GI typelibs without special hacks.
This commit is contained in:
committed by
Alexander Larsson
parent
bf7fa43431
commit
626fdf971b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user