[gnome-software/gnome-3-30] plugins/flatpak: order before icons plugin so icons are loaded
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-30] plugins/flatpak: order before icons plugin so icons are loaded
- Date: Tue, 16 Oct 2018 12:03:15 +0000 (UTC)
commit a2a161b3a98164e738986a53b2b6d62a9b4cfc3d
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 972b0a74..8b8ca74d 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]