https://bugs.winehq.org/show_bug.cgi?id=49241
Bug ID: 49241 Summary: (winecfg) Add ability to set windows version to default via command line Product: Wine Version: 5.9 Hardware: x86 OS: Linux Status: NEW Keywords: download, source Severity: enhancement Priority: P2 Component: programs Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: ---
Follow up to bug 41559:
would be nice to be able to do: $ wine winecfg /v default
to get wine to set the Windows version back to default (so that winetricks et al don't have to try to figure out what version that should be).
https://bugs.winehq.org/show_bug.cgi?id=49241
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zebediah Figura z.figura12@gmail.com --- I'd assume you want to save and restore the previous value; what's the purpose of this?
https://bugs.winehq.org/show_bug.cgi?id=49241
--- Comment #2 from Austin English austinenglish@gmail.com --- (In reply to Zebediah Figura from comment #1)
I'd assume you want to save and restore the previous value; what's the purpose of this?
Long term planning for winetricks. When winetricks changes the windows version for whatever reason, generally it's restored to the default value afterward. Winetricks sets that to the default, which currently in win7.
This presents two problems: 1) As you alluded, the previous value may not be the default. So, if a user does: $ winetricks vista $ wineserver -w $ winecfg
It shows vista. Good. The user then installs dotnet20: $ winetricks dotnet20 $ wineserver -w $ winecfg
winecfg is now set to win7. I'd like to instead be able to store the prefix default before changing it, and be able to set that instead of whatever winetricks' hardcoded default is.
2) At some point, win7 won't be default. win10, or some future windows release, if there every is one, will be. When that happens, winetricks either has to hardcode the wine version where the change occurred and replicate that logic, or not try to match it.
Instead, I'd like to be able to just do 'wine winecfg /v default', and know that regardless of the wine version, I will get the windows version that should be default.
Bug 49242 covers the case of getting the information. While I agree with Focht that having solutions that cover windows as well (i.e., systeminfo/wmic) would be good, it would be simpler for me to be able to get the info from winecfg (i.e., something that prints the windows version in same format that /v uses to set it).
https://bugs.winehq.org/show_bug.cgi?id=49241
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- I mean, I'd think the right thing to do is to save and restore version around individual verbs, rather than setting it back to the default. Is there a reason winetricks doesn't do this?
https://bugs.winehq.org/show_bug.cgi?id=49241
--- Comment #4 from Austin English austinenglish@gmail.com --- (In reply to Zebediah Figura from comment #3)
I mean, I'd think the right thing to do is to save and restore version around individual verbs, rather than setting it back to the default. Is there a reason winetricks doesn't do this?
Yes, I agree. Currently it's not done because it's non-trivial to _get_ the currently set version, hence, bug 49242 :).
Once that's in place, that's what I'd like to do. Setting the default at that point would be less important, but still useful.