Skip to content

Commit

Permalink
umu_run: respect order of winetricks verbs
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jun 5, 2024
1 parent b6b4f42 commit 5e6ea86
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,9 @@ def build_command(

# Configure winetricks to not be prompted for any windows
if env.get("EXE").endswith("winetricks") and opts:
opts.append("-q")
# Swap the option and the last verb because the position of arguments
# matter for winetricks.
# Usage: winetricks [options] [command|verb|path-to-verb] ...
# When swapping, assuming that order of verbs does not matter and will
# yield the same result
opts[0], opts[-1] = opts[-1], opts[0]
# The position of arguments matter for winetricks
# Usage: ./winetricks [options] [command|verb|path-to-verb] ...
opts.insert(0, "-q")

if opts:
command.extend(
Expand Down

0 comments on commit 5e6ea86

Please sign in to comment.