Skip to content

Commit

Permalink
Mount the game directory read-write
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed May 3, 2024
1 parent 0fc5b92 commit e66f8d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion util.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,8 @@ def run_in_sandbox(cmd: list[str], env: dict[str, str]=None) -> int:

# Mount the entire filesystem read-only and unshare all namespaces except
# the network
# The paths /tmp, WINEPREFIX and PROTONPATH will be remounted read-write
# The path to the WINE prefix, Proton directory and the game directory
# will be remounted read-write
opts = [
'--ro-bind',
'/',
Expand All @@ -906,6 +907,9 @@ def run_in_sandbox(cmd: list[str], env: dict[str, str]=None) -> int:
'--bind',
proton,
proton,
'--bind',
game,
game
]

return subprocess.run(
Expand Down

0 comments on commit e66f8d8

Please sign in to comment.