xdg-{open/mime} fail when one app in the list fails
For example if I have a mimeapps.list
like this:
text/plain=foo.desktop;gvim.desktop;
Running query xdg-mime query default text/plain
returns mousepad.desktop
. If the order is the other way it works.