[gnome-games/wip/exalm/steam] steam: Use /.local/share/Steam as install dir



commit 5f59a1d14799fbcc1fbeb76308f3768dbcba256a
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Feb 3 17:45:41 2019 +0500

    steam: Use /.local/share/Steam as install dir
    
    In some cases, symlinks in /.steam can be broken in Flatpak, leading to no
    games being detected. /.local/share/Steam seems to be more reliable.

 plugins/steam/src/steam-uri-source.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/steam/src/steam-uri-source.vala b/plugins/steam/src/steam-uri-source.vala
index b5e8bc23..a64cdabc 100644
--- a/plugins/steam/src/steam-uri-source.vala
+++ b/plugins/steam/src/steam-uri-source.vala
@@ -6,7 +6,7 @@ private class Games.SteamUriSource : Object, UriSource {
        // From the home directory.
        private const string REGISTRY_PATH = "/.steam/registry.vdf";
        // From the home directory.
-       private const string DEFAULT_INSTALL_DIR_SYMLINK = "/.steam/steam";
+       private const string DEFAULT_INSTALL_DIR = "/.local/share/Steam";
        // From an install directory.
        private const string[] STEAMAPPS_DIRS = { "/SteamApps", "/steamapps" };
        // From the default SteamApp directory.
@@ -32,7 +32,7 @@ private class Games.SteamUriSource : Object, UriSource {
                if (FileUtils.test (base_dir + STEAM_DIR, FileTest.IS_SYMLINK))
                        return;
 
-               add_library (base_dir + DEFAULT_INSTALL_DIR_SYMLINK);
+               add_library (base_dir + DEFAULT_INSTALL_DIR);
 
                if (install_path == null)
                        return;


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