How to have a wine prefix in /?

Questions about Wine on Linux
Locked
pedrofleck
Newbie
Newbie
Posts: 2
Joined: Sun Nov 23, 2014 4:34 pm

How to have a wine prefix in /?

Post by pedrofleck »

Hi,
My / is on my SSD and /home is on my HDD, but I want to install some smaller Windows applications in the SSD to have better performance.
How can I create the wine folder outside /home?
Thanks!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to have a wine prefix in /?

Post by dimesio »

spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: How to have a wine prefix in /?

Post by spoon0042 »

Any way you want to do this the first step is going to be creating a directory on / so sudo or su and then 'mkdir /whatever', then change its owner to your user. (That's all that needs to be done as root, you'll break things in wine otherwise.)

Putting a whole wineprefix in that directory then just involves setting WINEPREFIX=/whatever/something whenever you run wine. It's possible to set this in your bashrc or something so you don't have to type it all the time.

Alternatively you can use the default wineprefix (or another one) and move apps manually. To do that, install your program, make sure wine has quit, then (for example) 'mv ~/.wine/drive_c/Program\ Files/AppName /whatever/' then 'ln -s /whatever/AppName ~/.wine/drive_c/Program\ Files/'. You could do the same for user data in drive_c/users though I forget if this month people are saying you should or shouldn't put your browser cache on SSD. ;)
Locked