xdg-mime/xdg-open does not follow mime-actions-spec
Submitted by Vladimir
Assigned to Portland Bugs
Description
http://freedesktop.org/wiki/Specifications/mime-actions-spec) states that default application for a MIME type is the one that is listed first for a given MIME type in section [Added Associations] of mimeapps.list, e.g.:
Freedesktop.org mime-actions-spec ([Added Associations] mimetype1=foo1.desktop;foo2.desktop;foo3.desktop;
foo1 will will be default for mimetype1
But xdg-open/xdg-mime (via generic function) uses [Default Applications] section which is not covered in mime-actions-spec and therefore should not even exist in mimeapps.list. It also completely ignores standard [Added Associations] section in mimeapps.list.
I edit mimeapps.list:
[Added Associations] application/testapp=leafpad.desktop;
then run: xdg-mime query default application/testapp It returns nothing, but should return "leafpad.desktop".
Version: 1.1.0 rc1