tl;dr it's kind of a freedesktop problem because there are no priorities for mime-types, but that wouldn't be easy to fix, just like alternatives aren't (this is a debian only thing).
otherwise, we got two options:
1. trying to rearrange the order of application installation to make sure the one we want is installed last (fragile)
2. adding something to skel to give each user a set mime-type, which will always overwrite everything no matter what (potentially problematic)
it's possible stracing us might lead us to some other solution. gio might offer some help, too, as it does mime detection with xdg-mime.
tl;dr it's kind of a freedesktop problem because there are no priorities for mime-types, but that wouldn't be easy to fix, just like alternatives aren't (this is a debian only thing).
otherwise, we got two options:
1. trying to rearrange the order of application installation to make sure the one we want is installed last (fragile)
2. adding something to skel to give each user a set mime-type, which will always overwrite everything no matter what (potentially problematic)
it's possible stracing us might lead us to some other solution. gio might offer some help, too, as it does mime detection with xdg-mime.