[Portland-bugs] [Bug 99538] New: xdg-open does not handle multiple applications returned from xdg-mime

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 25 17:53:26 UTC 2017


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

            Bug ID: 99538
           Summary: xdg-open does not handle multiple applications
                    returned from xdg-mime
           Product: Portland
           Version: TP
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: kjetilho at ifi.uio.no

Created attachment 129146
  --> https://bugs.freedesktop.org/attachment.cgi?id=129146&action=edit
possible default applications are separated by semicolons

on my Fedora 24 system, xdg-mime will return a semicolon separated list (from
/usr/share//applications/mimeapps.list).  xdg-open will use the whole string
verbatim as the name of the desktop file, and it fails.

Example:

  $ /bin/xdg-mime query default image/jpeg
  eog.desktop;
  $ /bin/xdg-mime query default image/svg+xml
  eog.desktop;gthumb.desktop;

notice the trailing semicolon.

it seems to me xdg-open should split on ";" and look for each application in
turn.  I have a patch to do so at

https://github.com/kjetilho/xdg-utils/tree/open-fix

the patch is enclosed.  it also fixes a trivial but critical typo in xdg-open.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/portland-bugs/attachments/20170125/2395fd99/attachment.html>


More information about the Portland-bugs mailing list