[gnome-games] steam: Add Steam icon paths



commit 68f51ddcf44edfd8773050adabb5ef6264ce9143
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Fri Aug 10 17:55:31 2018 +0500

    steam: Add Steam icon paths
    
    This would allow Steam to get Steam game icons.

 plugins/steam/src/steam-plugin.vala | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/plugins/steam/src/steam-plugin.vala b/plugins/steam/src/steam-plugin.vala
index f4f1412f..07b1a10c 100644
--- a/plugins/steam/src/steam-plugin.vala
+++ b/plugins/steam/src/steam-plugin.vala
@@ -13,6 +13,13 @@ private class Games.SteamPlugin : Object, Plugin {
 
        static construct {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
+
+               // Add directories where Steam installs icons
+               var home = Environment.get_home_dir ();
+               var icon_theme = Gtk.IconTheme.get_default ();
+               icon_theme.append_search_path (home + "/.local/share/icons");
+               icon_theme.append_search_path (home + STEAM_FLATPAK_DIR + "/.local/share/icons");
+               icon_theme.append_search_path (home + STEAM_FLATPAK_DIR + "/data/icons");
        }
 
        public UriSource[] get_uri_sources () {


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