To reply to the upstream comment, directory is not a special type. Setting a default mimetype doesn't require playing with a different type, that's basically how apps for a mimetype work: - the .desktop lists the mimetype to MimeType= - update-desktop-database makes a list "Mimetype:<list of apps opening it>" to /usr/share/applications/mimeinfo.cache - when trying to open <mimetype> one handler from that list is picked, if no default is set nautilus picks the first using the reversed alphabetical order - you can set a default to /usr/share/applications/defaults.list for GNOME by example - user can set a custom default with an user defaults.list
That works for any mimetype. A directory is from "x-directory/normal" type, setting a default is only usin "x-directory/normal=app.desktop" to the defaults.list, no need to play with a non-mimetype for that -- Gnome's Places menu starts Konqueror instead of Nautilus https://launchpad.net/bugs/35997 -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs