[Portland-bugs] [Bug 44873] New: URI scheme handlers not invoked by xdg-open

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 17 14:40:27 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=44873

             Bug #: 44873
           Summary: URI scheme handlers not invoked by xdg-open
    Classification: Unclassified
           Product: Portland
           Version: 1.1.0 rc3
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
        AssignedTo: portland-bugs at lists.freedesktop.org
        ReportedBy: jon at thesquareplanet.com


Created attachment 55700
  --> https://bugs.freedesktop.org/attachment.cgi?id=55700
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

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Portland-bugs mailing list