Skip to content

Commit

Permalink
refactor: detect gamescope session before os
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Aug 20, 2024
1 parent c71a45a commit dd3105e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ def run_command(command: list[AnyPath]) -> int:
# order. Ensure we're in a steamos gamescope session before fixing them
# See https://github.com/ValveSoftware/gamescope/issues/1341
if (
get_osrelease_id() == "steamos"
and os.environ.get("XDG_CURRENT_DESKTOP") == "gamescope"
os.environ.get("XDG_CURRENT_DESKTOP") == "gamescope"
and get_osrelease_id() == "steamos"
):
log.debug("SteamOS gamescope session detected")
# Currently, steamos creates two xwayland servers at :0 and :1
Expand Down

0 comments on commit dd3105e

Please sign in to comment.