<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:hpj@copyleft.no" title="Hans Petter Jansson <hpj@copyleft.no>"> <span class="fn">Hans Petter Jansson</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - update-desktop-database does not treat folders with spaces correctly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103363">bug 103363</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;">Assignee</td>
<td>hpj@copyleft.no
</td>
<td>portland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<td style="text-align:right;">Component</td>
<td>general
</td>
<td>xdg-utils
</td>
</tr>
<tr>
<td style="text-align:right;">Product</td>
<td>desktop-file-utils
</td>
<td>Portland
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - update-desktop-database does not treat folders with spaces correctly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103363#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - update-desktop-database does not treat folders with spaces correctly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103363">bug 103363</a>
from <span class="vcard"><a class="email" href="mailto:hpj@copyleft.no" title="Hans Petter Jansson <hpj@copyleft.no>"> <span class="fn">Hans Petter Jansson</span></a>
</span></b>
<pre>Thanks for reporting this.
It looks like a bug in xdg-desktop-menu, which is a part of xdg-utils. It's a
shell script, and from the looks of it it's not built to deal with filenames
with spaces in them, e.g. it does this:
<span class="quote">> for desktop_file in $directory_files; do ... done</span >
...which breaks down when $directory_files expands to a list of names with
spaces in them. There are ways to deal with this in shell scripts, but none of
them are very pleasant (I suggest setting IFS='\n\t' and using arrays, but you
have to make sure it works with bash, dash and maybe other shells).
As an a propos, I have correctly installed Wine menu files in
~/.config/menus/applications-merged/ with spaces in the directory names -- but
I'm not sure what installed those.
I'm reassigning this bug to the appropriate product (which unfortunately is not
that easy to locate).</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>