[gnome-games] steam: Add Steam icon paths
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] steam: Add Steam icon paths
- Date: Fri, 10 Aug 2018 20:25:57 +0000 (UTC)
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]