diff options
author | Kalev Lember <klember@redhat.com> | 2018-02-22 16:50:22 +0100 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2018-02-22 17:13:15 +0100 |
commit | 1f7ff84a04c227bccb60c76f461f3dccbe372f7a (patch) | |
tree | 14620fababece5bae002807e0df719bbd4c18873 /libappstream-builder | |
parent | c688b5e0a66927907ed3e1f8c4b6acbfa2c60374 (diff) | |
download | appstream-glib-1f7ff84a04c227bccb60c76f461f3dccbe372f7a.tar.gz |
Add custom metadata key for shell extension uuid
... and convert the appstream ID to be compatible with what gnome-tweaks
uses (@'s replaced with _ and no .shell-extension at the end).
Diffstat (limited to 'libappstream-builder')
-rw-r--r-- | libappstream-builder/plugins/asb-plugin-shell-extension.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-shell-extension.c b/libappstream-builder/plugins/asb-plugin-shell-extension.c index 0d2b045..2563d49 100644 --- a/libappstream-builder/plugins/asb-plugin-shell-extension.c +++ b/libappstream-builder/plugins/asb-plugin-shell-extension.c @@ -94,8 +94,9 @@ as_app_parse_shell_extension_data (AsbPlugin *plugin, tmp = json_object_get_string_member (json_obj, "uuid"); if (tmp != NULL) { g_autofree gchar *id = NULL; - id = g_strdup_printf ("%s.shell-extension", tmp); + id = as_utils_appstream_id_build (tmp); as_app_set_id (app, id); + as_app_add_metadata (AS_APP (app), "uuid", tmp); } if (json_object_has_member (json_obj, "gettext-domain")) { tmp = json_object_get_string_member (json_obj, "gettext-domain"); |