Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

fix apps lookup on multilib setup #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions protontricks
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)
Expand Down Expand Up @@ -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:]
)