Skip to content

Commit

Permalink
umu_run: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Aug 13, 2024
1 parent d981688 commit 7cf963f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,11 +744,14 @@ def run_command(command: list[AnyPath]) -> int:
# See https://github.com/ValveSoftware/gamescope/issues/1341
if is_steamos() and os.environ.get("XDG_CURRENT_DESKTOP") == "gamescope":
log.debug("SteamOS gamescope session detected")
# Currently, steamos creates two xwayland servers at :0 and :1
# Despite the socket for display :0 being hidden at /tmp/.x11-unix in
# the Flatpak, it is still possible to connect to it.
d_primary = display.Display(":0")
gamescope_baselayer_sequence = get_gamescope_baselayer_order(d_primary)

# Currently, steamos creates two xwayland servers
# Ensure that there are exactly two before connecting to the second display
# Connect to the display associated with the game
# Display :1 will be visible in the Flatpak
if d_primary and os.environ.get("STEAM_MULTIPLE_XWAYLANDS") == "1":
d_secondary = display.Display(":1")

Expand Down

0 comments on commit 7cf963f

Please sign in to comment.