summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-08-25 14:21:02 +0100
committerRichard Hughes <richard@hughsie.com>2016-08-25 14:56:58 +0100
commiteec5359c89e3b081072b6491bf4e27c463eeb5f6 (patch)
tree6df7b320474ac9e07a6b52c484f68348cfdac668
parent7cd80fb185c089b1740ed2572f117566d1b665fb (diff)
downloadappstream-glib-eec5359c89e3b081072b6491bf4e27c463eeb5f6.tar.gz
Ignore system datadirs that are actually per-user
When running in jhbuild this is somehow set incorrectly.
-rw-r--r--libappstream-glib/as-store.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c
index 4cf0db8..4348ee9 100644
--- a/libappstream-glib/as-store.c
+++ b/libappstream-glib/as-store.c
@@ -2672,6 +2672,10 @@ as_store_search_per_system (AsStore *store,
g_debug ("skipping %s as invalid", data_dirs[i]);
continue;
}
+ if (g_str_has_prefix (data_dirs[i], "/home/")) {
+ g_debug ("skipping %s as invalid", data_dirs[i]);
+ continue;
+ }
if ((flags & AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM) > 0) {
g_autofree gchar *dest = NULL;
dest = g_build_filename (data_dirs[i], "app-info", NULL);