<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - xdg-open does not handle multiple applications returned from xdg-mime"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99538">99538</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>xdg-open does not handle multiple applications returned from xdg-mime
</td>
</tr>
<tr>
<th>Product</th>
<td>Portland
</td>
</tr>
<tr>
<th>Version</th>
<td>TP
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>xdg-utils
</td>
</tr>
<tr>
<th>Assignee</th>
<td>portland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kjetilho@ifi.uio.no
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=129146" name="attach_129146" title="possible default applications are separated by semicolons">attachment 129146</a> <a href="attachment.cgi?id=129146&action=edit" title="possible default applications are separated by semicolons">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=99538&attachment=129146'>[review]</a>
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
<a href="https://github.com/kjetilho/xdg-utils/tree/open-fix">https://github.com/kjetilho/xdg-utils/tree/open-fix</a>
the patch is enclosed. it also fixes a trivial but critical typo in xdg-open.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>