[gnome-software] trivial: Load AppStream XML from the user datadir



commit 03d60ee3220a985d7471c30a14330b554bf3bb81
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 d399a31..6c78826 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -198,6 +198,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]