Skip to content

Commit

Permalink
umu_run: fix not changing directory when in Flatpak
Browse files Browse the repository at this point in the history
- When applying winetricks verbs in a Flatpak, the launcher would not change to the protonfixes directory
  • Loading branch information
R1kaB3rN committed Jun 7, 2024
1 parent f4fb158 commit 8dbaee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,9 @@ def run_command(command: list[str]) -> int:
# Create a subprocess but do not set it as subreaper
# Unnecessary in a Flatpak and prctl() will fail if libc could not be found
if FLATPAK_PATH or not libc:
return run(command, start_new_session=True, check=False).returncode
return run(
command, start_new_session=True, check=False, cwd=cwd
).returncode

prctl = CDLL(libc).prctl
prctl.restype = c_int
Expand Down

0 comments on commit 8dbaee3

Please sign in to comment.