From 22a7b253eef92450c3aef34b43c49468daf16808 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 1 Feb 2016 13:46:36 +0000 Subject: Blacklist the xdg-app AppStream data as the correct data is added manually We don't want to process both files at startup. --- 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 2c98f1a..9097ae5 100644 --- a/libappstream-glib/as-store.c +++ b/libappstream-glib/as-store.c @@ -2040,6 +2040,10 @@ as_store_load (AsStore *store, installed = g_ptr_array_new_with_free_func (g_free); data_dirs = g_get_system_data_dirs (); for (i = 0; data_dirs[i] != NULL; i++) { + if (g_strstr_len (data_dirs[i], -1, "xdg-app/exports") != NULL) { + g_debug ("skipping %s as invalid", data_dirs[i]); + continue; + } if ((flags & AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM) > 0) { path = g_build_filename (data_dirs[i], "app-info", NULL); as_store_add_path_both (app_info, path); -- cgit v1.2.1