@ledoian@pleroma.ledoian.cz@lanodan@queer.hacktivis.me for wine you can disable MIME registration and desktop shortcuts with WINEDLLOVERRIDES=winemenubuilder.exe=d (i have it in my shell rc so i don’t need to set it for each prefix)
@lanodan@mia Yeah, the associations are a mess. I think desktop distros mostly don’t even ship any sort of default association list and just hope that you only have reasonable programs that claim to be open each filetype and relying on n-th fallback mechanism (exception being Fedora and OpenSUSE, the latter having it even reasonably customizable).
And given that I needed to make it working across DEs and for many users (with them possibly wanting to change defaults), I wrote a generator for the XDG files: https://gitea.ledoian.cz/LEdoian/mimeapps-list-tools. (It is not nice, but it still allows setting defaults and disabling overzealous openers like Calibre.)
But wine/windows apps might be too eager and edit mimeapps.list by itself, at which point it is indistinguishable from the user-intended change. (Maybe write a wrapper around wine to change XDG_CONFIG_DIR?)