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):
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?
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.