Bug 35700

Summary: [PATCH] look up default applications by URI scheme
Product: Portland Reporter: raboof <freedesktop>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: c.nicolas+bugs-freedesktop, jon
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: proposed improvement

Description raboof 2011-03-26 09:55:37 UTC
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
Comment 1 Rex Dieter 2011-04-09 11:01:47 UTC
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).
Comment 3 Cyprien Nicolas 2011-09-29 02:34:30 UTC
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?
Comment 4 Rex Dieter 2011-09-29 05:01:48 UTC
Agreed, I'll fix it up accordingly.
Comment 6 Jon Gjengset 2012-01-17 14:48:24 UTC
*** 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.