From eec5359c89e3b081072b6491bf4e27c463eeb5f6 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 25 Aug 2016 14:21:02 +0100 Subject: Ignore system datadirs that are actually per-user When running in jhbuild this is somehow set incorrectly. --- libappstream-glib/as-store.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.1