File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ():
You can’t perform that action at this time.
0 commit comments