[gnome-software] Use the same ID format as new versions of appstream-glib
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Use the same ID format as new versions of appstream-glib
- Date: Thu, 18 Feb 2016 09:10:12 +0000 (UTC)
commit e3f139421d7a218093df3c6b7d40286e8c05f59f
Author: Richard Hughes <richard hughsie com>
Date: Thu Feb 18 09:09:10 2016 +0000
Use the same ID format as new versions of appstream-glib
Per-user xdg-app apps have a custom prefix to avoid insanity.
Making them match means we get AppStream results for free.
src/plugins/gs-plugin-xdg-app.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-plugin-xdg-app.c b/src/plugins/gs-plugin-xdg-app.c
index 69e9428..08c544d 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -354,8 +354,8 @@ static gchar *
gs_plugin_xdg_app_build_id (XdgAppRef *xref)
{
if (xdg_app_ref_get_kind (xref) == XDG_APP_REF_KIND_APP)
- return g_strdup_printf ("%s.desktop", xdg_app_ref_get_name (xref));
- return g_strdup_printf ("%s.runtime", xdg_app_ref_get_name (xref));
+ return g_strdup_printf ("user-xdgapp:%s.desktop", xdg_app_ref_get_name (xref));
+ return g_strdup_printf ("user-xdgapp:%s.runtime", xdg_app_ref_get_name (xref));
}
/**
@@ -365,7 +365,8 @@ static GsApp *
gs_plugin_xdg_app_create_installed (GsPlugin *plugin,
XdgAppInstalledRef *xref,
GError **error)
-{ g_autofree gchar *id = NULL;
+{
+ g_autofree gchar *id = NULL;
g_autoptr(AsIcon) icon = NULL;
g_autoptr(GsApp) app = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]