diff options
author | Richard Hughes <richard@hughsie.com> | 2016-07-31 18:47:21 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-07-31 21:33:04 +0100 |
commit | 61abb8cad425a91b2d99a4a7915fc9256e6815a4 (patch) | |
tree | a076eb13e865638850f3252f91d5215a335060f3 /libappstream-glib/as-store.c | |
parent | 9309f01877776d14fb8481b013972ef4440be140 (diff) | |
download | appstream-glib-61abb8cad425a91b2d99a4a7915fc9256e6815a4.tar.gz |
trivial: Fix the flatpak scope when using the symlink name
Diffstat (limited to 'libappstream-glib/as-store.c')
-rw-r--r-- | libappstream-glib/as-store.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c index b1f50c7..00a6a77 100644 --- a/libappstream-glib/as-store.c +++ b/libappstream-glib/as-store.c @@ -1063,6 +1063,10 @@ as_store_from_root (AsStore *store, str[0] = '\0'; id_prefix_app = g_strdup (source_basename); } + + /* although in ~, this is a system scope app */ + if (g_strcmp0 (id_prefix_app, "flatpak") == 0) + scope = AS_APP_SCOPE_SYSTEM; } /* fallback */ @@ -1126,6 +1130,7 @@ as_store_from_root (AsStore *store, as_app_set_icon_path (app, icon_path); if (arch != NULL) as_app_add_arch (app, arch); + as_app_set_scope (app, scope); as_app_set_source_kind (app, AS_APP_SOURCE_KIND_APPSTREAM); if (!as_app_node_parse (app, n, ctx, &error_local)) { g_set_error (error, |