diff options
author | Richard Hughes <richard@hughsie.com> | 2016-02-01 15:19:16 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-02-01 15:19:16 +0000 |
commit | f0a450d7340b827e129509e516c245da00784d76 (patch) | |
tree | 140a431e490f81041e793df5dd2a35dd28af625c /libappstream-glib | |
parent | 22a7b253eef92450c3aef34b43c49468daf16808 (diff) | |
download | appstream-glib-f0a450d7340b827e129509e516c245da00784d76.tar.gz |
trivial: Support loading the xdg-app AppStream data from inside the sandbox
Diffstat (limited to 'libappstream-glib')
-rw-r--r-- | libappstream-glib/as-store.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c index 9097ae5..683935f 100644 --- a/libappstream-glib/as-store.c +++ b/libappstream-glib/as-store.c @@ -2104,8 +2104,12 @@ as_store_load (AsStore *store, NULL); g_ptr_array_add (installed, path); } - /* add AppStream */ - path = g_build_filename (g_get_user_data_dir (), + /* If we're running INSIDE the xdg-app environment we'll have the + * env var XDG_DATA_HOME set to "~/.var/app/org.gnome.Software/data" + * so specify the path manually to get the real data */ + path = g_build_filename (g_get_home_dir (), + ".local", + "share", "xdg-app", "appstream", NULL); |