How to move Wine directory

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
mich04
Newbie
Newbie
Posts: 2
Joined: Fri Aug 26, 2011 8:57 am

How to move Wine directory

Post by mich04 »

Hey there,
SO I was trying to install a program and I ran out of space. Is there an easy way to move wine's c drive to another partition? Thanks.
Fred2
Level 2
Level 2
Posts: 45
Joined: Mon Jul 18, 2011 11:58 am

Post by Fred2 »

A convenient way (I don't know if it's a "proper" way) is just to put a link to another location where Wine expects its directory. That means you move the /home/mich04/.wine folder to your other drive. In common file managers you then shift-ctrl-drag the .wine folder back to /home/mich04/.wine and a link will be placed there.

Actually you could have the .wine folder almost anywhere where you want and pass it as an environment variable everytime when you launch a Windows program (or add it to the .desktop launcher file):
env WINEPREFIX="/media/otherdrive/.wine" wine "C:/Program Files/MyProgram.exe"
Locked