<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:vhann3000+freedesktop@gmail.com" title="Olivier Diotte <vhann3000+freedesktop@gmail.com>"> <span class="fn">Olivier Diotte</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - xdg-open behaviour about %i contradicts desktop entry standard"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75530">bug 75530</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>vhann3000+freedesktop@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - xdg-open behaviour about %i contradicts desktop entry standard"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75530#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - xdg-open behaviour about %i contradicts desktop entry standard"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75530">bug 75530</a>
from <span class="vcard"><a class="email" href="mailto:vhann3000+freedesktop@gmail.com" title="Olivier Diotte <vhann3000+freedesktop@gmail.com>"> <span class="fn">Olivier Diotte</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=107754" name="attach_107754" title="Patch adding crude handling of %i and %c">attachment 107754</a> <a href="attachment.cgi?id=107754&action=edit" title="Patch adding crude handling of %i and %c">[details]</a></span>
Patch adding crude handling of %i and %c
I think I have found the problem:
In the function search_desktop_file() of xdg-open, only %[fFuU] is handled. %i
should be replaced by --icon <value of Icon key here>.
Attached is a patch that seems to work for that (and, as a bonus also replaces
%c by the name, although it should technically replace it by the Name[<correct
language>]).
I have tested with bash and bash in 'sh mode'. checkbashisms also doesn't
complain.</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>