Skip to content

Commit

Permalink
don't forefully set XDG_CURRENT_DESKTOP and XDG_CURRENT_SESSION -- th…
Browse files Browse the repository at this point in the history
…is shouldm be set by gamescope and as Heroic forces it to KDE it will mess up their logs. This is something that needs fixing on the Heroic side Heroic-Games-Launcher/HeroicGamesLauncher#3478
  • Loading branch information
GloriousEggroll committed Oct 19, 2024
1 parent 71e9057 commit 45b4ab2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,19 +670,6 @@ def run_command(command: tuple[Path | str, ...]) -> int:
or os.environ.get("XDG_SESSION_DESKTOP") == "gamescope"
)

# These are forced to KDE in Heroic due to an electron bug, let's set them back.
if (
is_gamescope_session
and os.environ.get("XDG_CURRENT_DESKTOP") != "gamescope"
):
os.environ["XDG_CURRENT_DESKTOP"] = "gamescope"

if (
is_gamescope_session
and os.environ.get("XDG_CURRENT_SESSION") != "gamescope"
):
os.environ["XDG_CURRENT_SESSION"] = "gamescope"

# Note: STEAM_MULTIPLE_XWAYLANDS is steam mode specific and is
# documented to be a legacy env var.
is_steammode: bool = (
Expand Down

0 comments on commit 45b4ab2

Please sign in to comment.