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
Somewhere to store persistent data for multiple prefixes
Re: Somewhere to store persistent data for multiple prefixes
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.
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.