Skip to content

Commit

Permalink
umu_run: only log warning if not in steamos gamescope session
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jun 12, 2024
1 parent 5a19c5a commit 2700d83
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,15 @@ def build_command(
)
return command

if env.get("UMU_NO_RUNTIME") == "pressure-vessel":
# Log the warning when running games within SteamOS gamescope session
if (
env.get("UMU_NO_RUNTIME") == "pressure-vessel"
and not is_steamdeck()
and os.environ.get("XDG_CURRENT_DESKTOP") != "gamescope"
):
log.warning("Using Proton without Runtime Platform")

if env.get("UMU_NO_RUNTIME") == "pressure-vessel":
command.extend(
[
Path(env.get("PROTONPATH")).joinpath("proton").as_posix(),
Expand Down

0 comments on commit 2700d83

Please sign in to comment.