Avoid using home as user folder

Questions about Wine on Linux
Locked
Phobeus
Newbie
Newbie
Posts: 2
Joined: Wed Oct 03, 2012 11:31 am

Avoid using home as user folder

Post by Phobeus »

Hi there,

I am not exactly sure, but I could swear that wine was using some years ago a different way to handle the user document folder than yet. When e.g. running a game, it is creating a new folder for storing its settings or other game stuff into my home folder. However its easy to lose the overview (especially when using multiple prefixes) and I don't like the idea, that the windows and linux settings are going into the same folder.

Is there any way to configure the wine default behaviour and storing these user data right into the wine prefix that is currently used? E.g. instead of creating it ~/Electronic Arts into ~/.wine-ea/userdata/Electronic Arts?

Didn't find anything about this so far, but not even sure for what to search. So being happy for any hints. Many thanks in advance!
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: Avoid using home as user folder

Post by DanKegel »

Vitamin wrote: "You can make this change from winecfg. However the is no way to make it default for new wineprefixes. You will have to modify Wine source."

Unfortunately, I managed to delete his reply by accident. Mea culpa.
Phobeus
Newbie
Newbie
Posts: 2
Joined: Wed Oct 03, 2012 11:31 am

Re: Avoid using home as user folder

Post by Phobeus »

So its basically just setting the document folder in the winecfg? I was hoping that there might be some kind of environmental variable that could be set to restore the old behaviour. Am I really the only person who is unhappy with having the wine folders right between his documents? ;)
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Avoid using home as user folder

Post by dimesio »

Winetricks sandbox will remove all the desktop integration links for you with one command. Unfortunately, it also removes the z: drive, which you may not want (I don't). There are two ways around this:

1. Comment out the line in winetricks that removes the z: drive. You will have to do this every time you update winetricks.
2. Copy the part of of winetricks that removes the desktop integration links and save it as a shell script on its own. (That's what I did.)
Locked