aboutsummaryrefslogtreecommitdiff
path: root/src/extras
diff options
context:
space:
mode:
Diffstat (limited to 'src/extras')
-rw-r--r--src/extras/findgame.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/extras/findgame.js b/src/extras/findgame.js
index cfcb7aa..924c96f 100644
--- a/src/extras/findgame.js
+++ b/src/extras/findgame.js
@@ -55,7 +55,17 @@ module.exports = async () => {
case "linux":
case "openbsd":
case "freebsd":
- folder = path.join(app.getPath("home"), "/.steam/steam/steamapps/libraryfolders.vdf");
+ let paths = [
+ "/.steam/steam/steamapps/libraryfolders.vdf",
+ ".var/app/com.valvesoftware.Steam/.steam/steam/steamapps/libraryfolders.vdf"
+ ]
+
+ for (let i = 0; i < paths.length; i++) {
+ if (fs.existsSync(path.join(app.getPath("home"), paths[i]))) {
+ folder = path.join(app.getPath("home"), paths[i]);
+ continue
+ }
+ }
break
}