summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-03-02 08:54:27 +0000
committerRichard Hughes <richard@hughsie.com>2016-03-02 08:54:27 +0000
commitd4b84bf7f5be30eaee75b91e7a7b72be9f4ff241 (patch)
treec06bc0c32c5d13b46a50ef07dcedca61ee815488 /client
parent718421deb0f119b605641eb1444625f554f589a8 (diff)
downloadappstream-glib-d4b84bf7f5be30eaee75b91e7a7b72be9f4ff241.tar.gz
trivial: When searching look in the user app-info dirs too
Diffstat (limited to 'client')
-rw-r--r--client/as-util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/as-util.c b/client/as-util.c
index 7a1aed5..c2c9546 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -1316,6 +1316,7 @@ as_util_search (AsUtilPrivate *priv, gchar **values, GError **error)
if (!as_store_load (store,
AS_STORE_LOAD_FLAG_IGNORE_INVALID |
AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM |
+ AS_STORE_LOAD_FLAG_APP_INFO_USER |
AS_STORE_LOAD_FLAG_APPDATA |
AS_STORE_LOAD_FLAG_XDG_APP_USER |
AS_STORE_LOAD_FLAG_XDG_APP_SYSTEM |
@@ -1384,7 +1385,10 @@ as_util_show_search_tokens (AsUtilPrivate *priv, gchar **values, GError **error)
/* load system database */
store = as_store_new ();
- if (!as_store_load (store, AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM, NULL, error))
+ if (!as_store_load (store,
+ AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM |
+ AS_STORE_LOAD_FLAG_APP_INFO_USER,
+ NULL, error))
return FALSE;
dict = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
apps = as_store_get_apps (store);