<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - xdg-open does not exit if it does not recognize the mimetype"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89902#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - xdg-open does not exit if it does not recognize the mimetype"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89902">bug 89902</a>
from <span class="vcard"><a class="email" href="mailto:rdieter@math.unl.edu" title="Rex Dieter <rdieter@math.unl.edu>"> <span class="fn">Rex Dieter</span></a>
</span></b>
<pre>OK, this should be a better fix (than <a href="show_bug.cgi?id=89902#c4">comment #4</a>):
diff -u /usr/bin/xdg-open.orig /usr/bin/xdg-open
--- /usr/bin/xdg-open.orig 2015-04-06 08:27:10.396932209 -0500
+++ /usr/bin/xdg-open 2015-04-06 08:29:31.534667495 -0500
@@ -706,7 +706,8 @@
file_check=${file_check%%\?*}
check_input_file "$file_check"
- open_generic_xdg_file_mime "$file"
+ filetype=`xdg-mime query filetype "$file_check" | sed "s/;.*//"`
+ open_generic_xdg_mime "$file" "$filetype"
if which run-mailcap 2>/dev/null 1>&2; then
run-mailcap --action=view "$file"</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>