summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libappstream-glib/as-store.c8
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);