nixpkgs/pkgs/development/libraries/glib/fix-gio-launch-desktop-path.patch
Tor Hedin Brønner 38c529f57a
glib: use absolute path for gio-launch-desktop
glib tries to look up `gio-launch-desktop` in the path which obviously can fail.
Specifically this now happens when launching gnome-shell.
2018-11-30 21:35:15 +01:00

12 lines
406 B
Diff

--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -2725,7 +2725,7 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
/* Fall back on usual searching in $PATH */
if (tmp == NULL)
- tmp = "gio-launch-desktop";
+ tmp = "@bindir@/gio-launch-desktop";
g_once_init_leave (&gio_launch_desktop_path, tmp);
}