[gnome-software] plugin: Use the new launchable tag when launching apps
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] plugin: Use the new launchable tag when launching apps
- Date: Thu, 10 Jan 2019 21:55:03 +0000 (UTC)
commit 7685ea79fc8003c64db826f4e4267690dcc643c8
Author: Kalev Lember <klember redhat com>
Date: Fri Jan 4 17:17:58 2019 +0100
plugin: Use the new launchable tag when launching apps
... and fall back to the app ID if launchable isn't set.
lib/gs-plugin.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin.c b/lib/gs-plugin.c
index 28374bfc..d7db184f 100644
--- a/lib/gs-plugin.c
+++ b/lib/gs-plugin.c
@@ -945,7 +945,9 @@ gs_plugin_app_launch (GsPlugin *plugin, GsApp *app, GError **error)
const gchar *desktop_id;
g_autoptr(GAppInfo) appinfo = NULL;
- desktop_id = gs_app_get_id (app);
+ desktop_id = gs_app_get_launchable (app, AS_LAUNCHABLE_KIND_DESKTOP_ID);
+ if (desktop_id == NULL)
+ desktop_id = gs_app_get_id (app);
if (desktop_id == NULL) {
g_set_error (error,
GS_PLUGIN_ERROR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]