<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 - Logic lacking in xdg-mime:info_gnome()"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100006">100006</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Logic lacking in xdg-mime:info_gnome()
</td>
</tr>
<tr>
<th>Product</th>
<td>Portland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>stian+bz@sletner.com
</td>
</tr></table>
<p>
<div>
<pre>The logic in info_gnome() checks if gio, gvfs-info or gnomevfs-info are
available, but if neither of them are, it exits silently with exit code 0
(success).
This causes unexpected behaviour (ie "nothing happens") on a bare XFCE desktop,
where none of these things are installed.
It's possible that the author expected $? to be nonzero in this case, but
that's not how it works, observe:
$ ls missing
ls: cannot access 'missing': No such file or directory
$ echo $?
2
$ if ls missing; then echo ok; fi
ls: cannot access 'missing': No such file or directory
$ echo $?
0
So it seems to me there lacks an else clause here that errs. At a glance this
logic seems to be repeated in the other info_*() functions but I couldn't tell
you if those too can trigger in reality.</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>