Created attachment 44891 [details] [review] proposed improvement This patch allows the 'generic' backend of xdg-open to query xdg-mime for default applications based on URI scheme. For example, this way 'spotify:'-url's can be supported by registering "xdg-mime default spotify.desktop uri/spotify" Based on http://lists.freedesktop.org/archives/portland/2011-February/001148.html
though we're largely in bugfix mode only now gearing up for 1.1.0 release, this is probably safe. I'll ponder whether to commit this sooner or later (to be clear, either way, the addition is welcome).
thanks, committed, http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=8c2615d3e470790eeb153ac520b22c21c189be77
May I ask the rationale for choosing "uri/<protocol>"? Reading some .desktop applications, Midori for instance, the MimeType entry contains: MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo;image/svg+xml; For consistency in FDO, I do think it could be better to name the prefix "x-scheme-handler/" instead of "uri/". Thoughts?
Agreed, I'll fix it up accordingly.
done, http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=5010c394ca7dd443cefd63b764687f98c2353577
*** Bug 44873 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.