[gnome-software/ramcq/flatpak-icons] plugins/flatpak: order before icons plugin so icons are loaded



commit 1fe25100647466ec111204325061249ade2c572c
Author: Robert McQueen <robert mcqueen me uk>
Date:   Tue Oct 9 09:56:48 2018 +0000

    plugins/flatpak: order before icons plugin so icons are loaded
    
    Because we re-use code from the appstream plugin, locally-installed Flatpaks
    which are loaded from the local AppStream file don't get their pixbuf loaded
    unless the icons plugin is run after Flatpak, which means they are considered
    invalid and not reliably shown in the Installed tab.

 plugins/flatpak/gs-plugin-flatpak.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plugins/flatpak/gs-plugin-flatpak.c b/plugins/flatpak/gs-plugin-flatpak.c
index eec3d6f0..8b4f0795 100644
--- a/plugins/flatpak/gs-plugin-flatpak.c
+++ b/plugins/flatpak/gs-plugin-flatpak.c
@@ -58,6 +58,9 @@ gs_plugin_initialize (GsPlugin *plugin)
        /* getting app properties from appstream is quicker */
        gs_plugin_add_rule (plugin, GS_PLUGIN_RULE_RUN_AFTER, "appstream");
 
+    /* like appstream, we need the icon plugin to load cached icons into pixbufs */
+    gs_plugin_add_rule (plugin, GS_PLUGIN_RULE_RUN_BEFORE, "icons");
+
        /* prioritize over packages */
        gs_plugin_add_rule (plugin, GS_PLUGIN_RULE_BETTER_THAN, "packagekit");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]