Code change:
), formatter_class=argparse.RawTextHelpFormatter ) <del> @@ -133,14 +132,10 @@ def main(args=None): </del> <ins> @@ -138,18 +137,9 @@ def main(args=None): ) </ins> sys.exit(-1) <del> # 2. Find Steam Runtime if enabled -    steam_runtime_path = None +    steam_runtime = False </del> <ins> -    # 2. Find the pre-installed legacy Steam Runtime if enabled -    legacy_steam_runtime_path = None -    use_steam_runtime = True - +    # 2. Use Steam Runtime if enabled </ins> if os.environ.get("STEAM_RUNTIME", "") != "0" and not args.no_runtime: <del> -        steam_runtime_path = find_steam_runtime_path(steam_root=steam_root) </del> <ins> -        legacy_steam_runtime_path = find_legacy_steam_runtime_path( -            steam_root=steam_root -        ) </ins> - <del> -        if not steam_runtime_path: </del> <ins> -        if not legacy_steam_runtime_path: </ins> -            print("Steam Runtime was enabled but couldn't be found!") -            sys.exit(-1) <del> +        steam_runtime = True </del> <ins> +        use_steam_runtime = True </ins> else: <ins> use_steam_runtime = False </ins> logger.info("Steam Runtime disabled.") <del> @@ -201,7 +196,7 @@ def main(args=None): winetricks_path=winetricks_path, </del> <ins> @@ -212,7 +202,6 @@ def main(args=None): </ins> proton_app=proton_app, steam_app=steam_app, <del> -            steam_runtime_path=steam_runtime_path, +            steam_runtime=steam_runtime, command=[winetricks_path, "--gui"] </del> <ins> use_steam_runtime=use_steam_runtime, -            legacy_steam_runtime_path=legacy_steam_runtime_path, command=[winetricks_path, "--gui"], use_bwrap=use_bwrap </ins> ) <del> @@ -269,7 +264,7 @@ def main(args=None): winetricks_path=winetricks_path, </del> <ins> @@ -282,7 +271,6 @@ def main(args=None): </ins> proton_app=proton_app, steam_app=steam_app, <del> -            steam_runtime_path=steam_runtime_path, +            steam_runtime=steam_runtime, </del> <ins> use_steam_runtime=use_steam_runtime, -            legacy_steam_runtime_path=legacy_steam_runtime_path, use_bwrap=use_bwrap, </ins> command=[winetricks_path] + args.winetricks_command) elif args.command: <del> run_command( @@ -277,7 +272,7 @@ def main(args=None): proton_app=proton_app, </del> <ins> @@ -292,7 +280,6 @@ def main(args=None): </ins> steam_app=steam_app, command=args.command, <del> -            steam_runtime_path=steam_runtime_path, +            steam_runtime=steam_runtime, </del> <ins> use_steam_runtime=use_steam_runtime, -            legacy_steam_runtime_path=legacy_steam_runtime_path, use_bwrap=use_bwrap, </ins> # Pass the command directly into the shell *without* # escaping it <del> cwd=steam_app.install_path, </del> diff --git a/src/protontricks/steam.py b/src/protontricks/steam.py <del> index fa5772d..4f30cd3 100644 </del> <ins> index 8554e24..509afb6 100644 </ins> --- a/src/protontricks/steam.py +++ b/src/protontricks/steam.py <del> @@ -11,7 +11,7 @@ from .util import lower_dict </del> <ins> @@ -13,8 +13,8 @@ from .util import lower_dict </ins> __all__ = ( "COMMON_STEAM_DIRS", "SteamApp", "find_steam_path", <del> -    "find_steam_proton_app", "find_proton_app", "find_steam_runtime_path", +    "find_steam_proton_app", "find_proton_app", "find_appid_proton_prefix", "get_steam_lib_paths", "get_steam_apps", "get_custom_proton_installations" </del> <ins> "find_steam_proton_app", "find_proton_app", -    "find_legacy_steam_runtime_path", "find_appid_proton_prefix", -    "get_steam_lib_paths", "get_steam_apps", "get_custom_proton_installations" +    "find_appid_proton_prefix", "get_steam_lib_paths", +    "get_steam_apps", "get_custom_proton_installations" </ins> ) <del> @@ -254,37 +254,6 @@ def find_steam_path(): </del> <ins> COMMON_STEAM_DIRS = [ @@ -283,37 +283,6 @@ def find_steam_path(): </ins> return None, None <del> -def find_steam_runtime_path(steam_root): </del> <ins> -def find_legacy_steam_runtime_path(steam_root): </ins> -    """ <del> -    Find the Steam Runtime either using the STEAM_RUNTIME env or </del> <ins> -    Find the legacy Steam Runtime either using the STEAM_RUNTIME env or </ins> -    steam_root -    """ -    env_steam_runtime = os.environ.get("STEAM_RUNTIME", "")

Related discussion:
text: This issue is mainly a note to myself since the upgrade won't be trivial and will need a lot of testing. Protontricks is now using the Pressure Vessel runtime, so I have to refactor my patches with steam-run to account for this. <!-- Note that these are hard requirements --<!-- You can use the "Go to file" functionality on github to find the package Then you can go to the history for this package Find the latest "packagename: oldversion -newversion" commit The "newversion" is the the current version of the package --- <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- name: protontricks <!-- The current version can be found easily with the same process than above for checking the master branch If an open PR is present for the package, take this version as the current one and link to the PR --current version: 1.4.4 desired version: 1.5.0 <!-- Search your package here: If no maintainer is listed for your package, tag the person that last updated the package --maintainers: myself