Dominique Leuenberger
6d204d4918
- Add glib2-no_DBusActivatable_from_keyfile.patch: Don't try DBusActivatable with load_from_keyfile. Fixes a crash when starting synapse with any .desktop files installed that specify DBusActivatable=true (e.g. gnome-weather, bnc#842645). Local tests succeeded with synapse WANTED for 13.1 OBS-URL: https://build.opensuse.org/request/show/202421 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=243
30 lines
932 B
Diff
30 lines
932 B
Diff
From e0ffd5c184bd1c0e6d602c406f53ed5f6b765f88 Mon Sep 17 00:00:00 2001
|
|
From: Ryan Lortie <desrt@desrt.ca>
|
|
Date: Thu, 03 Oct 2013 14:02:08 +0000
|
|
Subject: appinfo: Don't try DBusActivatable with load_from_keyfile
|
|
|
|
We can't get the name of the filename, so we can't determine the application
|
|
ID. We'll have to fallback on Exec= for this case.
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=709326
|
|
---
|
|
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
|
|
index f6f5bc0..141a89a 100644
|
|
--- a/gio/gdesktopappinfo.c
|
|
+++ b/gio/gdesktopappinfo.c
|
|
@@ -461,7 +461,10 @@ g_desktop_app_info_load_from_keyfile (GDesktopAppInfo *info,
|
|
info->path = NULL;
|
|
}
|
|
|
|
- if (bus_activatable)
|
|
+ /* Can only be DBusActivatable if we know the filename, which means
|
|
+ * that this won't work for the load-from-keyfile case.
|
|
+ */
|
|
+ if (bus_activatable && info->filename)
|
|
{
|
|
gchar *basename;
|
|
gchar *last_dot;
|
|
--
|
|
cgit v0.9.2
|
|
|