Skip to content

Automatically update default Wine flavor to its latest version; and also automatically update any game prefixes that have inherited from this default value #1752

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

Closed
Nocifer opened this issue Aug 30, 2022 · 0 comments · Fixed by #2513

Comments

@Nocifer
Copy link

Nocifer commented Aug 30, 2022

Problem description

I'm always frustrated when I update a Wine flavor to a newer (higher) version and the game prefixes I've already created don't automatically switch to it, forcing me to change their configuration by hand. And I'm always even more frustrated when I uninstall the old, previously-set-as-default version and all the existing prefixes break apart until I manually intervene.

To reproduce:

  1. Install the latest version of a Wine flavor, e.g. Wine-GE-Proton7-26
  2. Set it as the default Wine in Settings -> Wine
  3. Create a game's prefix; it'll automatically inherit the default Wine value, i.e. Wine-GE-Proton7-26
  4. Update Wine to a newer (or simply different) version, e.g. Wine-GE-Proton7-27
  5. Observation A: The default Wine version doesn't automatically switch; it remains Wine-GE-Proton7-26
  6. Observation B: The previously created prefix doesn't automatically switch; it remains at Wine-GE-Proton7-26
  7. Uninstall Wine-GE-Proton7-26
  8. Observation C: The default Wine version switches to the system-wide Wine (e.g. 7.16 staging)
  9. Observation D: The previously created prefix does not automatically switch, thereby breaking the game and requiring manual intervention.
  10. Observation E: Even more frustratingly, if one goes to the game's settings, the Wine version shown is the new default but it's not applied until one manually switches to a different Wine flavor; otherwise, the game's selected Wine flavor remains as whatever it was set to when first created, as is evident by going to Library -> Select Game -> Tools

Feature description

In Lutris, whenever I update whatever Wine flavor I've set as default it automatically picks up the newest version and updates all Wine prefixes accordingly.

AFAICT, it probably maintains a priority list of Wine flavors and automatically sets them as default at whatever it can determine as their latest (i.e. highest) version. It does the same for prefixes; it doesn't set them to a specific version but to a specific flavor as well, so the prefix can always pick up and run the latest version of the selected flavor.

E.g., if I have set lutris-GE-Proton7-26-x86_64 as the default Wine, Lutris actually sets lutris-GE-Proton7 (or some such) as the default. If I then download lutris-GE-Proton7-27-x86_64, it will automatically pick it up and use that version as the default. But if I also download e.g. lutris-wine-7.2-2 it will set that as the default instead, presumably because lutris-wine has higher priority than lutris-GE-Proton7 in the internal priority list.

So what I'm asking for is the first half of this equation: allow us to set a Wine flavor instead of a specific version as the default, and whenever we download a newer version of that flavor have both the default and any prefixes that have inherited from that default switch to the new version automatically.

Also, you could/should provide a toggle in the game configuration options that allows us to lock a specific game's Wine flavor to a specific Wine version (e.g. because that game has regressed in newer Wine versions).

Alternatives

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant