Open robertkirkman opened 5 months ago
Workaround that I created and used successfully to bypass this crash:
diff --git a/src/protontricks/steam.py b/src/protontricks/steam.py
index 403ef39..7b5378d 100644
--- a/src/protontricks/steam.py
+++ b/src/protontricks/steam.py
@@ -313,6 +313,9 @@ def _get_steamapps_subdirs(path):
except FileNotFoundError:
# Directory does not exist
return []
+ except PermissionError:
+ # Permission denied to access directory
+ return []
# Sort entries so that 'steamapps' is listed first, as it's the default
# directory name that Steam uses and should thus be prioritized
I'm not sure whether the implementation and style of this workaround is sufficient for this repository. Maybe a more generalized, idiomatic implementation is possible.
Describe the bug
PermissionError
when the Steam installation has previously had a Steam Library Folder moved between a lot of different places and the user now has insufficient permissions for one of those placesTo Reproduce
Expected behavior Protontricks should ignore any folder that the user does not have permission to access with the same behavior it currently exhibits for folders that do not exist
System (please complete the following information):
paru -S protontricks-git
(disabled-read-only techniques employed to test the git master branch. the Flatpak version is also affected by the same error on this system.)Additional context
Example command:
protontricks 396280 --gui -vv
Result: