[gnome-games/wip/exalm/desktop-in-flatpak: 64/64] desktop: Add Flatpak icon paths



commit 693817cffa8473cb1837f0bc35a307dcebf6d776
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Fri Aug 10 20:07:45 2018 +0500

    desktop: Add Flatpak icon paths

 plugins/desktop/src/desktop-plugin.vala | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/plugins/desktop/src/desktop-plugin.vala b/plugins/desktop/src/desktop-plugin.vala
index f39d6e51..55b7d874 100644
--- a/plugins/desktop/src/desktop-plugin.vala
+++ b/plugins/desktop/src/desktop-plugin.vala
@@ -11,6 +11,11 @@ private class Games.DesktopPlugin : Object, Plugin {
 
        static construct {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
+
+               var home = Environment.get_home_dir ();
+               var icon_theme = Gtk.IconTheme.get_default ();
+               icon_theme.prepend_search_path (home + "/.local/share/flatpak/exports/share/icons");
+               icon_theme.prepend_search_path ("/var/lib/flatpak/exports/share/icons");
        }
 
        public UriSource[] get_uri_sources () {


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