[glib/glib-2-38] appinfo: Don't try DBusActivatable with load_from_keyfile
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-38] appinfo: Don't try DBusActivatable with load_from_keyfile
- Date: Tue, 22 Oct 2013 14:18:55 +0000 (UTC)
commit 90a53576e295e993196a3835041800134622c3d2
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Oct 3 10:02:08 2013 -0400
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
gio/gdesktopappinfo.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index f7f0169..88386ee 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -423,7 +423,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]