Skip to content

Commit

Permalink
Use util functions instead of env variables for paths
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed May 3, 2024
1 parent ec29725 commit 0fc5b92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,9 @@ def run_in_sandbox(cmd: list[str], env: dict[str, str]=None) -> int:
"""
sandbox_bin = '/usr/libexec/steam-runtime-tools-0/srt-bwrap'
env = env or dict(protonmain.g_session.env)
pfx = os.path.expanduser(os.environ.get('WINEPREFIX') or "")
proton = os.path.expanduser(os.environ.get('PROTONPATH') or "")
pfx = protonprefix()
proton = protondir()
game = get_game_install_path()

if not proton or not pfx:
log.warn("WINEPREFIX or PROTONPATH is not set or empty")
Expand Down

0 comments on commit 0fc5b92

Please sign in to comment.