From 3fb14814d7545859a912e4d2b22bdad222c944df Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Tue, 7 Jan 2025 19:52:25 +0200 Subject: [PATCH] umu: temporary overrides for backwards compatibility with existing umu installations To be able to test this scout/soldier runtimes need to be copied from a Steam installation ```sh cp ~/.local/share/Steam/steamapps/common/SteamLinuxRuntime ~/.local/share/umu/scout -r cp ~/.local/share/Steam/ubuntu12_32/steam-runtime ~/.local/share/umu/scout/ -r cp ~/.local/share/Steam/ubuntu12_32/steam-runtime.tar.xz.checksum ~/.local/share/umu/scout/ -r cp ~/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/ ~/.local/share/umu/soldier -r ``` To run an application with `scout-on-soldier` ```sh UMU_LOG=1 GAMEID=0 WINEPREFIX=~/Wine/umu/ PROTONPATH=scout umu-run ``` --- umu/umu_consts.py | 3 +++ umu/umu_util.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/umu/umu_consts.py b/umu/umu_consts.py index d5d1bfb5..8699926c 100644 --- a/umu/umu_consts.py +++ b/umu/umu_consts.py @@ -109,6 +109,9 @@ def __post_init__(self) -> None: # noqa: D105 return if self.path is None: self.path = UMU_LOCAL.joinpath(self.name) + # Temporary override for backwards compatibility + if self.version == "steamrt3": + self.path = UMU_LOCAL RUNTIME_VERSIONS = { diff --git a/umu/umu_util.py b/umu/umu_util.py index 20eb764e..b2efb2c9 100644 --- a/umu/umu_util.py +++ b/umu/umu_util.py @@ -364,6 +364,9 @@ def command(self, verb: str) -> list[str]: """Return the tool specific entry point.""" tool_path = os.path.normpath(self.tool_path) cmd = "".join([shlex.quote(tool_path), self.tool_manifest["commandline"]]) + # Temporary override for backwards compatibility + if self.tool_path == str(UMU_LOCAL): + cmd = cmd.replace("_v2-entry-point", "umu") cmd = cmd.replace("%verb%", verb) return shlex.split(cmd)