Bug 35700 - [PATCH] look up default applications by URI scheme
Summary: [PATCH] look up default applications by URI scheme
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
: 44873 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-26 09:55 UTC by raboof
Modified: 2012-01-17 14:48 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
proposed improvement (1.66 KB, patch)
2011-03-26 09:55 UTC, raboof
Details | Splinter Review

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.