Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Steam and Proton usage #2961

Merged
merged 5 commits into from
Aug 5, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Detect proton version not defining a compatmanager_layer_name
  • Loading branch information
koplo199 committed Jul 13, 2023
commit d41f0c6eeb550080ca55aa0d5a229a5177984a49
5 changes: 4 additions & 1 deletion bottles/backend/utils/steam.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def is_proton(path: str) -> bool:
compat_layer_name = data.get("manifest", {}) \
.get("compatmanager_layer_name", {})

return "proton" in compat_layer_name
commandline = data.get("manifest", {}) \
.get("commandline", {})

return "proton" in compat_layer_name or "proton" in commandline

@staticmethod
def get_associated_runtime(path: str) -> str:
Expand Down