Howto change default wineprefix settings?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
weetabix
Newbie
Newbie
Posts: 1
Joined: Sat Feb 07, 2009 4:05 pm

Howto change default wineprefix settings?

Post by weetabix »

I have a dilemma.

When freshly installing game (i usually used wineprefixcreate, but now I just use WINEPREFIX when installing) I want certain settings to be used when starting wine.

Now I have to click-click through my winecfg to make them right every time I install new game or software. Most notable edits are Sound, Drives and Desktop integration (where the personal folders are configured).

How I can change these defaults into something different?

I tried to change Shell Folder "My Documents" (I believe that's what's called, not using English language version) from winecfg and comparing registrys through sdiff. All the registrys are identical (system,user and userdef), so wine must save that information into somewhere else. Where is it hidden so I could try to change it automatically, since manually sucks (I really dont want the files to go directly my /home/username -folder).

It would be so much easier to save the wanted edits into file and just say "use these modifications" when starting/creating new prefix.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Howto change default wineprefix settings?

Post by vitamin »

weetabix wrote:How I can change these defaults into something different?
Well you can't easily change defaults because some are hard-coded into Wine itself and you'll have to hack source.

What you can do is create a script that edits all what you want to edit. Some things are in registry - sound. Some things are symlinks - drives, location of "My Documents", "Desktop", etc - shell-folders.

Drives are symlinks in $WINEPREFIX/dosdevices where "x:" points to a mount point and "x::" points to device.

Shell-folders are bit more complicated. They are symlinks or real directories here: $WINEPREFIX/dosdevices/c:/windows/profiles/$USER/
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Howto change default wineprefix settings?

Post by austin987 »

On Sat, Feb 7, 2009 at 4:02 PM, vitamin <[email protected]> wrote:
weetabix wrote:
How I can change these defaults into something different?
Well you can't easily change defaults because some are hard-coded into Wine itself and you'll have to hack source.

What you can do is create a script that edits all what you want to edit. Some things are in registry - sound. Some things are symlinks - drives, location of "My Documents", "Desktop", etc - shell-folders.

Drives are symlinks in $WINEPREFIX/dosdevices where "x:" points to a mount point and "x::" points to device.

Shell-folders are bit more complicated. They are symlinks or real directories here: $WINEPREFIX/dosdevices/c:/windows/profiles/$USER/





You can also edit tools/wine.inf, but that would get overwritten each
time wine is upgraded.

--
-Austin
Locked