[gnome-software/gnome-3-10] trivial: Load AppStream XML from the user datadir
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-10] trivial: Load AppStream XML from the user datadir
- Date: Wed, 23 Oct 2013 08:11:51 +0000 (UTC)
commit 093be0cdd37d1b8bda151986a3147a71c9e8f588
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 21 21:14:54 2013 +0100
trivial: Load AppStream XML from the user datadir
src/plugins/gs-plugin-appstream.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 12c0081..171062e 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -196,6 +196,13 @@ gs_plugin_parse_xml (GsPlugin *plugin, GError **error)
if (!ret)
goto out;
}
+ path_xml = g_build_filename (g_get_user_data_dir (), "app-info", "xmls", NULL);
+ path_icons = g_build_filename (g_get_user_data_dir (), "app-info", "icons", NULL);
+ ret = gs_plugin_parse_xml_dir (plugin, path_xml, path_icons, error);
+ g_free (path_xml);
+ g_free (path_icons);
+ if (!ret)
+ goto out;
path_xml = g_build_filename (LOCALSTATEDIR, "cache", "app-info", "xmls", NULL);
path_icons = g_build_filename (LOCALSTATEDIR, "cache", "app-info", "icons", NULL);
ret = gs_plugin_parse_xml_dir (plugin, path_xml, path_icons, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]