Somewhere to store persistent data for multiple prefixes

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
IanS
Newbie
Newbie
Posts: 3
Joined: Fri Mar 15, 2019 9:44 am

Somewhere to store persistent data for multiple prefixes

Post by IanS »

I'm developing a Windows application and, simultaneously, keeping it 100% compatible with Wine.

When the application is installed the user can setup some defaults such as setting up the skin and other preferences. I store this in a simple text file. I'd like to store this file outside of the Wine Prefix so that if the user deletes the prefix and reinstalls the app I can offer the option to reload all his previous preferences.

I've seen the Z: drive. and from there the App can see into the Linux file system. Is there a user read/write area where I can store that text file? Is that z: drive common to all wine installations? Is the app going to break any rules by writing to somewhere like "var/lib/MyAppName"?

Thanks
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Somewhere to store persistent data for multiple prefixes

Post by jkfloris »

You don't need the Z: drive. By default Wine will create symbolic links to the user home directory.

C:\users\<user name>\Desktop --> ~/Desktop
C:\users\<user name>\My Documents --> ~/Documents
C:\users\<user name>\My Pictures --> ~/Pictures
C:\users\<user name>\My Music --> ~/Music
C:\users\<user name>\My Videos --> ~/Videos

It is common to store settings in a My Documents\<Application name> directory.
Locked