[gnome-software/wip/hughsie/unique_id: 4/5] shell-extensions: Port to unique_id
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/unique_id: 4/5] shell-extensions: Port to unique_id
- Date: Thu, 28 Jul 2016 16:42:46 +0000 (UTC)
commit eb62cd70ab6796df697f02cb38afdb47abe104f5
Author: Richard Hughes <richard hughsie com>
Date: Thu Jul 28 17:18:40 2016 +0100
shell-extensions: Port to unique_id
src/plugins/gs-plugin-shell-extensions.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-plugin-shell-extensions.c b/src/plugins/gs-plugin-shell-extensions.c
index e0c6557..24c75e3 100644
--- a/src/plugins/gs-plugin-shell-extensions.c
+++ b/src/plugins/gs-plugin-shell-extensions.c
@@ -120,12 +120,13 @@ gs_plugin_shell_extensions_add_app (GsPlugin *plugin,
gchar *str;
GVariant *val;
g_autofree gchar *id = NULL;
- g_autofree gchar *id_prefix = NULL;
+ g_autofree gchar *unique_id = NULL;
g_autoptr(AsIcon) ic = NULL;
id = gs_plugin_shell_extensions_id_from_uuid (uuid);
- id_prefix = g_strdup_printf ("user:%s", id);
- gs_app_set_id (app, id_prefix);
+ unique_id = g_strdup_printf ("user:%s", id);
+ gs_app_set_id (app, id);
+ gs_app_set_unique_id (app, unique_id);
gs_app_set_metadata (app, "GnomeSoftware::Creator",
gs_plugin_get_name (plugin));
gs_app_set_management_plugin (app, gs_plugin_get_name (plugin));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]