From 032cbb24dc4d89db6a92774098b14b1638d5e2d0 Mon Sep 17 00:00:00 2001 From: pal666 Date: Thu, 27 Dec 2018 03:50:07 +0200 Subject: [PATCH 1/2] fix apps lookup on multilib setup --- protontricks | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protontricks b/protontricks index ef4f265..6ab808d 100755 --- a/protontricks +++ b/protontricks @@ -237,11 +237,11 @@ def get_steam_apps(steam_lib_dirs): steam_apps = [] for path in steam_lib_dirs: - if os.path.isdir(os.path.join(steam_dir, "steamapps")): + if os.path.isdir(os.path.join(path, "steamapps")): appmanifest_paths = glob.glob( os.path.join(path, "steamapps", "appmanifest_*.acf") ) - elif os.path.isdir(os.path.join(steam_dir, "SteamApps")): + elif os.path.isdir(os.path.join(path, "SteamApps")): appmanifest_paths = glob.glob( os.path.join(path, "SteamApps", "appmanifest_*.acf") ) From ac77888b0af179b2b20337fdc882d76d53cd23df Mon Sep 17 00:00:00 2001 From: Serge Pavlovsky Date: Thu, 27 Dec 2018 23:40:12 +0200 Subject: [PATCH 2/2] run winetricks with steam runtime --- protontricks | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/protontricks b/protontricks index 6ab808d..52beeb0 100755 --- a/protontricks +++ b/protontricks @@ -426,4 +426,9 @@ if __name__ == "__main__": os.environ.get('WINEPREFIX') ) ) - subprocess.call([os.environ.get('WINETRICKS')] + sys.argv[2:]) + subprocess.call( + [ + os.path.join(steam_dir, 'ubuntu12_32', 'steam-runtime', 'run.sh'), + os.environ.get('WINETRICKS') + ] + sys.argv[2:] + )