-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Don't enable Steam Runtime when switching to wine-ge-proton
#2593
Conversation
If I remember right, this was actually intended, because it's made for Steam. @mirkobrombin thoughts? |
@TheEvilSkeleton No, Proton-GE is intended for Steam. Wine-GE can and should be used without Steam. I don't know why "-proton" was added, but it definitely shouldn't force enable the Steam runtime |
Wait, what is this one? I know of wine-ge-custom and proton-ge-custom. I've never heard of wine-ge-proton. |
Because it doesn't exist, this is Wine-GE aka wine-ge-proton. For some reason, @koplo199 added "proton" to the name of Wine-GE here: bottlesdevs/components#190 Why was this change needed? |
@Kinsteen Interesting, I originally changed it because:
To me, the bug here is on the core side and not on the component side: whether the runner is a proton/wine one shouldn't be guessed by checking a list of hard-coded names when the components yml files already specify I see that in manager.py there is: Bottles/bottles/backend/managers/manager.py Lines 100 to 101 in 0bb66aa
Could we instead of hard-coding the name, just check if the runner is contained in supported_proton_runners ? Would it be an acceptable fix?
|
bottles/backend/runner.py
Outdated
@@ -89,7 +89,7 @@ def runner_update(config: BottleConfig, manager: 'Manager', runner: str) -> Resu | |||
the host system. There are some exceptions, like the Soda and Wine-GE runners, | |||
which are built to work without the Steam Runtime. | |||
""" | |||
if "proton" in runner.lower() and RuntimeManager.get_runtimes("steam"): | |||
if "proton" in runner.lower() and not runner.startswith("wine-ge-proton") and RuntimeManager.get_runtimes("steam"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if "proton" in runner.lower() and not runner.startswith("wine-ge-proton") and RuntimeManager.get_runtimes("steam"): | |
if runner in manager.supported_proton_runners and RuntimeManager.get_runtimes("steam"): |
@koplo199 It would be a perfect fix, even more so than what we had before. I tested quickly, and it seemed to work fine. More tests would be welcome, but I think it's the way to go. |
Looking around the code, it seems that |
Okay. Would you be more comfortable closing this, and letting someone else do it, and change this like I suggested so we could merge? Someone else can do the other occurrences of this behavior, if you don't want to do it. |
Pylint result on modfied files:
|
…nner name Fixes an issue where using to `wine-ge-proton` would make Bottles think it's a Proton runner, thus enabling the Steam Runtime
Description
wine-ge-proton
containsproton
in its name, which caused Bottles to enable the Steam Runtime.Type of change