I have a couple of versions of wine installed, and most of the time I'm pretty good at remember which WINEPREFIX I used with which version of wine, but sometimes I get forgetful, and I end up screwing up a WINEPREFIX by accidentally running a higher version of wine in it, and it auto-updates and I have to recreate it. Is there some command or file I can use to determine the version of wine that a particular WINEPREFIX was created with? Or am I pretty much responsible for keeping track of that myself? Thanks.
ischou wrote:> Is there some command or file I can use to determine the version of wine that a particular WINEPREFIX was created with?The only way is to do it the same way Wine does it - using ~/.wine/.update-timestamp, which contains epoc time of when last time wine.inf was modified. Or you can put "disable" into that file disabling Wine from updating wineprefix automatically. Or make a shell wrapper for Wine that will do this check for you. But this will need either table mapping update-timestamp times to versions or an extra file created by you. Something like (not tested but should work): Code: #!/bin/bash WINEPREFIX=${WINEPREFIX:-$HOME/.wine} VER=$(cat $WINEPREFIX/.version) VER=${VER:-git} #Directory with all Wine versions you have /usr/local/wine/$VER/wine $@ It depends on wineprefix having ".version" file with the version of Wine you want to use this prefix with. You can create it on first run of this script with an extra option for example.