From 0fc5b9228b56dbbbed4289eb34e46e96eac7aed0 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Fri, 3 May 2024 09:48:31 -0700 Subject: [PATCH] Use util functions instead of env variables for paths --- util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util.py b/util.py index b0da151a..2c2ed6fe 100755 --- a/util.py +++ b/util.py @@ -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")