diff options
author | Richard Hughes <richard@hughsie.com> | 2016-01-20 11:08:38 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-01-25 12:00:50 +0000 |
commit | 547e770715302b75f4b815212a7952ce6508f8a9 (patch) | |
tree | 6807cea88cfe6069cd744bc7dd473fba553ba524 /client | |
parent | 9391e856ae20fa826c34c6f3aed0d0822bcc712f (diff) | |
download | appstream-glib-547e770715302b75f4b815212a7952ce6508f8a9.tar.gz |
Add support for per-user and system-wide xdg-app installed stores
Diffstat (limited to 'client')
-rw-r--r-- | client/as-util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/as-util.c b/client/as-util.c index 42cf2f7..3911475 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -1251,6 +1251,12 @@ as_util_dump (AsUtilPrivate *priv, gchar **values, GError **error) NULL, error)) { return FALSE; } + } else if (g_strcmp0 (values[0], "xdg-app") == 0) { + if (!as_store_load (store, + AS_STORE_LOAD_FLAG_XDG_APP_USER, + NULL, error)) { + return FALSE; + } } else { for (i = 0; values[i] != NULL; i++) { if (!as_util_add_file_to_store (store, values[i], error)) @@ -1293,6 +1299,8 @@ as_util_search (AsUtilPrivate *priv, gchar **values, GError **error) if (!as_store_load (store, AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM | AS_STORE_LOAD_FLAG_APPDATA | + AS_STORE_LOAD_FLAG_XDG_APP_USER | + AS_STORE_LOAD_FLAG_XDG_APP_SYSTEM | AS_STORE_LOAD_FLAG_DESKTOP, NULL, error)) return FALSE; |