Skip to content

Commit

Permalink
umu_run: fix exit 3 status code for winetricks
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jun 5, 2024
1 parent 232ef14 commit 14c9807
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,18 @@ def set_env(
env["EXE"] = ""
env["STEAM_COMPAT_INSTALL_PATH"] = ""
env["PROTON_VERB"] = "waitforexitandrun"
elif isinstance(args, tuple) and args[0] == "winetricks":
# Make an absolute path to winetricks that is within our Proton, which
# includes the dependencies bundled within the protonfix directory.
# Fixes exit 3 status codes after applying verbs
bin: str = (
Path(env["PROTONPATH"], "protonfixes", "winetricks")
.expanduser()
.resolve(strict=True)
.as_posix()
)
log.debug("EXE: %s -> %s", args[0], bin)
args: tuple[str, list[str]] = (bin, args[1])
elif isinstance(args, tuple):
try:
env["EXE"] = (
Expand Down

0 comments on commit 14c9807

Please sign in to comment.