Where wine writes?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Where wine writes?

Post by etwineb »

I'd like to know where wine writes.
I am not speaking about applications wine executes, they can obviously write everywhere the user privileges allows (via z:/), but of wine itself.

I saw that even using WINEPREFIX wine writes in ~/.local, sometime it leaves .desktop files around.

Why is that? When wine writes exactly?
Can I force wine keeping everything it needs in its WINEPREFIX folder?

(reason: I made few packages of windows applications, they should work most possibly as linux native ones)

thanks, a RTM answer is fine if you point me in the right direction.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Where wine writes?

Post by vitamin »

etwineb wrote:I'd like to know where wine writes.
Into $WINEPREFIX if it's registry or "fake c:" drive. And potentially anywhere you (as user) have access to.
etwineb wrote:I saw that even using WINEPREFIX wine writes in ~/.local, sometime it leaves .desktop files around.
Yes that's the standard place for menu links, menu sctracture descriptors and icons. See standard for more details: http://standards.freedesktop.org/basedi ... atest.html
etwineb wrote:Can I force wine keeping everything it needs in its WINEPREFIX folder?
No you can't. Window managers don't know to look inside $WINEPREFIX for menu entries, icons, etc.
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Post by etwineb »

Well, if wine follows the XDG specifications I can change the directories just altering the $XDG_* environment variables. Is that so?

Edit: I just tried. It works fine. Using:
XDG_DATA_HOME=/dev/null wine installer.exe
installs without messing up the system.

Thanks.
Locked