Skip to content

Commit 047c97a

Browse files
committed
Add back flatpak path
1 parent 243f74b commit 047c97a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

SLScheevo.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,15 +832,22 @@ def determine_steam_directory(self):
832832
else:
833833
native_path = Path.home() / ".local/share/Steam"
834834
symlink_path = Path.home() / ".steam/steam"
835+
flatpak_path = Path.home() / ".var/app/com.valvesoftware.Steam/data/Steam"
835836

836837
if native_path.exists():
837838
self.main.STEAM_DIR = native_path
838839
self.logger.log_base(f"Using native Steam installation: {native_path}")
840+
839841
elif symlink_path.exists():
840842
self.main.STEAM_DIR = symlink_path
841843
self.logger.log_base(f"Using symlink Steam installation: {symlink_path}")
844+
845+
elif flatpak_path.exists():
846+
self.main.STEAM_DIR = flatpak_path
847+
self.logger.log_base(f"Using Flatpak Steam installation: {flatpak_path}")
848+
842849
else:
843-
self.logger.log_error("No Steam installation found in ~/.local/share/Steam or ~/.steam/steam")
850+
self.logger.log_error("No Steam installation found in ~/.local/share/Steam, ~/.steam/steam, ~/.var/app/com.valvesoftware.Steam/data/Steam")
844851
sys.exit(EXIT_STEAM_NOT_FOUND)
845852

846853
if not self.main.STEAM_DIR.exists():

0 commit comments

Comments
 (0)