How to streamline creating a new Wine prefix without location symlinks?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Post Reply
shmerl
Level 2
Level 2
Posts: 15
Joined: Mon Feb 25, 2008 12:35 pm

How to streamline creating a new Wine prefix without location symlinks?

Post by shmerl »

I'm trying to write a script for creating a new Wine prefix that doesn't have mime associations and common locations symlinks are disabled out of the box.

So I far I figured out how to do the first part (assume $WINEPREFIX is set to what you need at this point):

Code: Select all

export WINEDLLOVERRIDES='winemenubuilder.exe=d'
wine winecfg /v win11
wine reg add 'HKEY_CURRENT_USER\Software\Wine\FileOpenAssociations' /v "Enable" /d "N" /f > /dev/null 2>&1
That works neatly without putting all that stuff in $HOME/.local/share/mime, but I still need to go into winecfg and deselect all symlinks for locations. Is there some way to automate this using Wine itself or I need to manually find those locations and turn them into normal directories?
shmerl
Level 2
Level 2
Posts: 15
Joined: Mon Feb 25, 2008 12:35 pm

Re: How to streamline creating a new Wine prefix without location symlinks?

Post by shmerl »

I didn't find any obvious method, so I wrote that portion in semi-manual fashion, getting paths from the registry and then unlinking / re-creating them explicitly.

See the result here.
Post Reply