diff options
author | Richard Hughes <richard@hughsie.com> | 2016-02-01 13:46:36 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-02-01 13:47:02 +0000 |
commit | 22a7b253eef92450c3aef34b43c49468daf16808 (patch) | |
tree | 9760f4b62dc3d44a6f91d3c58b66a227e15d2b95 /libappstream-glib | |
parent | 37bae682d01f3bb428b41d561b449e1aeafc31dd (diff) | |
download | appstream-glib-22a7b253eef92450c3aef34b43c49468daf16808.tar.gz |
Blacklist the xdg-app AppStream data as the correct data is added manually
We don't want to process both files at startup.
Diffstat (limited to 'libappstream-glib')
-rw-r--r-- | libappstream-glib/as-store.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |