From dd3105e4ceef83bdc9d7437139f9475325e2a66d Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:39:34 -0700 Subject: [PATCH] refactor: detect gamescope session before os --- umu/umu_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umu/umu_run.py b/umu/umu_run.py index 79ef9cb66..fdbf7a653 100755 --- a/umu/umu_run.py +++ b/umu/umu_run.py @@ -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