Skip to content

Commit

Permalink
umu_run: only setup windows in gamescope session
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jul 13, 2024
1 parent 15decf6 commit 3e3114f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion umu/umu_run.py
Original file line number Diff line number Diff line change
@@ -605,6 +605,7 @@ def run_command(command: list[AnyPath]) -> int:
proc: Popen
ret: int = 0
libc: str = get_libc()
gamescope_baselayer_sequence: list[int] | None = None

if not command:
err: str = f"Command list is empty or None: {command}"
@@ -638,7 +639,9 @@ def run_command(command: list[AnyPath]) -> int:
preexec_fn=lambda: prctl(PR_SET_CHILD_SUBREAPER, 1, 0, 0, 0, 0),
cwd=cwd,
)
gamescope_baselayer_sequence = get_gamescope_baselayer_order()

if os.environ.get("XDG_CURRENT_DESKTOP") == "gamescope":
gamescope_baselayer_sequence = get_gamescope_baselayer_order()

# Dont do window fuckery if we're not inside gamescope
if gamescope_baselayer_sequence and not os.environ.get("EXE", "").endswith(

0 comments on commit 3e3114f

Please sign in to comment.