Skip to content

Commit

Permalink
umu_run: remove steam deck device check
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jul 2, 2024
1 parent 53d0073 commit 460c084
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from umu_util import (
get_libc,
is_installed_verb,
is_steamdeck,
is_winetricks_verb,
)

Expand Down Expand Up @@ -312,7 +311,6 @@ def set_env(
if (
not os.environ.get("UMU_NO_RUNTIME")
and FLATPAK_PATH
and is_steamdeck()
and os.environ.get("XDG_CURRENT_DESKTOP") == "gamescope"
):
log.debug("SteamOS gamescope session detected")
Expand All @@ -327,6 +325,7 @@ def enable_steam_game_drive(env: dict[str, str]) -> dict[str, str]:
paths: set[str] = set()
root: Path = Path("/")
libc: str = get_libc()

# All library paths that are currently supported by the container framework
# See https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/blob/main/docs/distro-assumptions.md#filesystem-layout
# Non-FHS filesystems should run in a FHS chroot to comply
Expand Down Expand Up @@ -367,7 +366,6 @@ def enable_steam_game_drive(env: dict[str, str]) -> dict[str, str]:
return env

# Set the shared library paths of the system after finding libc.so
# See https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/blob/main/docs/distro-assumptions.md#filesystem-layout
for rtpath in steamrt_paths:
if not Path(rtpath).is_symlink() and Path(rtpath, libc).is_file():
paths.add(rtpath)
Expand Down Expand Up @@ -403,15 +401,8 @@ def build_command(
err: str = "The following file was not found in PROTONPATH: proton"
raise FileNotFoundError(err)

# Only 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":
log.warning("Using Proton without Runtime Platform")
command.extend(
[
proton,
Expand Down

0 comments on commit 460c084

Please sign in to comment.