Bug 44873

Summary: URI scheme handlers not invoked by xdg-open
Product: Portland Reporter: Jon Gjengset <jon>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium CC: jon
Version: 1.1.0 rc3   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch that enables xdg-open to handle non-file URIs

Description Jon Gjengset 2012-01-17 14:40:27 UTC
Created attachment 55700 [details] [review]
Patch that enables xdg-open to handle non-file URIs

xdg-open currently ignores any URIs passed to it that are not paths to local files (file://). There is already an established method for finding the MIME type of such URIs, namely "x-scheme-handler/$scheme" where $scheme is the scheme of the URI.

Attached is a patch that makes xdg-open handle URIs with any scheme by constructing the MIME type string as above, and then calling xdg-mime query default to find an application that can handle the given URI.

Cheers,
Jon Gjengset
Comment 1 Jon Gjengset 2012-01-17 14:42:32 UTC
Arch Linux forum thread: https://bbs.archlinux.org/viewtopic.php?pid=1042599
Comment 2 Jon Gjengset 2012-01-17 14:44:35 UTC
Never mind, I see that this has been fixed in: http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=8c2615d3e470790eeb153ac520b22c21c189be77
and
http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=5010c394ca7dd443cefd63b764687f98c2353577

When can we expect a release containing these changes?
Comment 3 Jon Gjengset 2012-01-17 14:48:24 UTC

*** This bug has been marked as a duplicate of bug 35700 ***

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.