Skip to content

Commit

Permalink
umu_run: update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Aug 14, 2024
1 parent 62038b3 commit 6d7427f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@

from umu.umu_consts import (
DEBUG_FORMAT,
FLATPAK_ID,
FLATPAK_PATH,
PR_SET_CHILD_SUBREAPER,
PROTON_VERBS,
STEAM_COMPAT,
Expand Down Expand Up @@ -664,8 +662,8 @@ def run_command(command: list[AnyPath]) -> int:
else:
cwd = Path.cwd()

# Create a subprocess but do not set it as subreaper
if FLATPAK_PATH or not libc:
if os.environ.get("container") == "flatpak" or not libc: # noqa: SIM112
# Create a subprocess but do not set it as subreaper
proc = Popen(command, start_new_session=True, cwd=cwd)
else:
prctl = CDLL(libc).prctl
Expand Down

0 comments on commit 6d7427f

Please sign in to comment.