Skip to content

Commit 8dbaee3

Browse files
committed
umu_run: fix not changing directory when in Flatpak
- When applying winetricks verbs in a Flatpak, the launcher would not change to the protonfixes directory
1 parent f4fb158 commit 8dbaee3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

umu/umu_run.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,9 @@ def run_command(command: list[str]) -> int:
452452
# Create a subprocess but do not set it as subreaper
453453
# Unnecessary in a Flatpak and prctl() will fail if libc could not be found
454454
if FLATPAK_PATH or not libc:
455-
return run(command, start_new_session=True, check=False).returncode
455+
return run(
456+
command, start_new_session=True, check=False, cwd=cwd
457+
).returncode
456458

457459
prctl = CDLL(libc).prctl
458460
prctl.restype = c_int

0 commit comments

Comments
 (0)