Skip to content

Commit

Permalink
umu_run: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Sep 14, 2024
1 parent a1c3e54 commit 466a0db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,8 @@ def run_in_steammode(proc: Popen) -> int:
# Currently, steamos creates two xwayland servers at :0 and :1
# Despite the socket for display :0 being hidden at /tmp/.x11-unix in
# in the Flatpak, it is still possible to connect to it.
# TODO: Find a way to get the displays
# TODO: Find a robust way to get gamescope displays both in a container
# and outside a container
with (
xdisplay(":0") as d_primary,
xdisplay(":1") as d_secondary,
Expand Down Expand Up @@ -623,7 +624,6 @@ def run_in_steammode(proc: Popen) -> int:
)
baselayer_thread.daemon = True
baselayer_thread.start()

return proc.wait()

return proc.wait()
Expand All @@ -637,6 +637,8 @@ def run_command(command: tuple[Path | str, ...]) -> int:
ret: int = 0
prctl_ret: int = 0
libc: str = get_libc()
# Note: STEAM_MULTIPLE_XWAYLANDS is steam mode specific and is
# documented to be a legacy env var.
is_steammode: bool = (
os.environ.get("XDG_CURRENT_DESKTOP") == "gamescope"
and os.environ.get("STEAM_MULTIPLE_XWAYLANDS") == "1"
Expand Down

0 comments on commit 466a0db

Please sign in to comment.