File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -169,17 +169,9 @@ def __init__(self, args):
169
169
# ~/.steam/steam is a symlink usually pointing to ~/.local/share/Steam,
170
170
# but the location it points to might be different for unknown reasons.
171
171
# Trust the symlink location to point to the correct steam install location.
172
- if all (
173
- (
174
- (steam := Path .home () / ".steam" / "steam" ).exists (),
175
- steam .is_symlink (),
176
- steam .readlink ().exists (),
177
- )
178
- ):
179
- self .steam = (Path .home () / ".steam" / "steam" ).resolve () / "steamapps"
180
- else :
181
- # The symlink at ~/.steam/steam was broken. Fallback to a sane default.
182
- self .steam = Path .home () / ".local/share/Steam/steamapps"
172
+ # It might not be a symlink at all, steam might just be installed here.
173
+ # Permit the absence of it too, in case users only use flatpak.
174
+ self .steam = (Path .home () / ".steam" / "steam" ).resolve () / "steamapps"
183
175
self .flatpak = (
184
176
Path .home ()
185
177
/ ".var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps"
You can’t perform that action at this time.
0 commit comments