WINEDIFFPREFIX="$PWD/KingsBounty2"
Plavozont opened this issue · 0 comments
Good day! I have a suggestion on how to make wine lighter and windows application's running more friendly (at least for me:)).
I wish to be able to set WINEDIFFPREFIX parameter which will initialize not a full prefix but "empty prefix" with empty reg files and empty drive_c folder.
If I run
Winearch=win32 WINEDIFFPREFIX="$PWD/KingsBounty2" wine "c:\windows\explorer.exe"
The explorer will start and from it's point of view on drive c: all files from normal prefix will present
If I put some setup.exe into drive_c folder it will also appear from explorer's point of view in c:\
Then if I run setup.exe from explorer, the application will be installed and only application's files will appear in drive_c folder and only registry records created while installaton will appear in reg files! This will save space, there would be no need to create multiple wine prefixes that became very heavy by now.
Inside diffprefix folder the .desktop file should be created which imitates .lnk file which was created on the windows desktop folder while installation. Also a shell scripts to run explorer.exe and winecfg would be very handy too.
And if I walk into the drive_c folder and find the application folder somewhere in Programm Files or in the Games folder and double click exe file, then wine should automatically detect that this application is placed in diffprefix and run it with WINEDIFFPREFIX parameter automatically. This will make running windows applications more friendly and native, because every application will be placed in it's own folder with it's own parameters, which will make windows applications easier to manage, we will not need wine bottles and extra disk space and it will be easier to find all the files that belong to application and registry entries, also it will be very easy to apply different wine versions to the same wineDIFFprefix and of course it woud be a charm to simply click exe file to run it without creating complicated shell scripts to take wineprefix in count. It would be great to have a context menu item "Initialize wine diff prefix in current folder" but I guess it depends on Linux distribution. Thanks for reading this🫢, what do you think?