[gnome-software/ramcq/flatpak-icons] plugins/flatpak: order before icons plugin so icons are loaded
- From: Robert McQueen <ramcq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/ramcq/flatpak-icons] plugins/flatpak: order before icons plugin so icons are loaded
- Date: Tue, 9 Oct 2018 09:57:05 +0000 (UTC)
commit 163aa4bd4d4059787dc0c5f92fdcb72edbb2ed4e
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 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]