What is the correct location to create a new WINEPREFIX?

Questions about Wine on Linux
Locked
IGGt
Newbie
Newbie
Posts: 4
Joined: Tue Feb 02, 2016 7:01 am

What is the correct location to create a new WINEPREFIX?

Post by IGGt »

I have a copy of WINE installed on a Debian Server. And I have now set up my first application.

The .exe is in /home/user/appDir/appName.exe

I have set up a .desktop file containing:

Exec=env WINEPREFIX="/home/user/.wine" wine /home/user/appDir/appName.exe

This all works fine.

I now need a second copy of my application, so I will need a new WINEPREFIX.

Should I create the prefix as /home/user/.wine2, and put the second copy of the application as /home/user/appDir2/appName.exe ?

I'm just wondering because I notice that Firefox is also installed and seems to have it's own WINEPREFIX in home/user/.local/share/wineprefixes/firefox

And all the files are then installed under /home/user/.local/share/wineprefixes/firefox/dosdevices/c:/Program Files/Mozilla Firefox

Is either of these considered right / wrong? will one or the other come back to bite me later on (bearing in mind I may have 4 / 5 copies of my application to set up.
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: What is the correct location to create a new WINEPREFIX?

Post by dimesio »

Exec=env WINEPREFIX="/home/user/.wine" wine /home/user/appDir/appName.exe
That may work in this case, but when using a unix-style path the command should really be

Code: Select all

wine start /unix /path/to/exe
Should I create the prefix as /home/user/.wine2, and put the second copy of the application as /home/user/appDir2/appName.exe ?
You don't really need a second copy of the app. Just specify WINEPREFIX=/home/user/.wine2 and run the executable in /home/user/appDir.
I'm just wondering because I notice that Firefox is also installed and seems to have it's own WINEPREFIX in home/user/.local/share/wineprefixes/firefox
That's where winetricks puts the apps it installs, unless you specify --no-isolate.
Locked