<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-desktop-menu adds entries to defaults.list"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103125">103125</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>xdg-desktop-menu adds entries to defaults.list
</td>
</tr>
<tr>
<th>Product</th>
<td>Portland
</td>
</tr>
<tr>
<th>Version</th>
<td>1.1.0
</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>mikhirev@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>The xdg-desktop-menu script, when installing a menu entry, sets the application
as default handler for MIME types that are listed in its desktop file. This
behavior was introduced in commit 1f7f2ea7 with the following message:
<span class="quote">> Make application the default handler for a mimetype if it is the only
> handler for that mimetype so far.</span >
In fact, this is incorrect. xdg-desktop-menu does not check if there are other
handlers or not, it only checks that there's no *default* handler already set.
Even if it performed such a check, it would be strange to set the only possible
handler as default explicitly.
I consider such a behavior is a misfeature. Is is not documented anywhere, and
it is unexpected that the tool, the only purpose of which is to add a menu
item, adds some MIME types associations. Furthermore, it is impossible to
disable this (e.g via a command line option), and, as already reported in
#71825, such an association is not removed when removing the corresponding menu
entry or even when the application itself is being removed.
Please consider reverting commit 1f7f2ea7 and disabling such a strange
behavior.</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>