<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-mime can't handle desktop file with spaces in their name"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107416">107416</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>xdg-mime can't handle desktop file with spaces in their name
</td>
</tr>
<tr>
<th>Product</th>
<td>Portland
</td>
</tr>
<tr>
<th>Version</th>
<td>1.1.0 rc3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</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>jean-18-09@hotmail.fr
</td>
</tr></table>
<p>
<div>
<pre>If a directory is named "bar foo baz" in an "applications" directory and there
exist
a "foo" directory in the current working directory and the directory "foo" has
a filename or subdirectory called "a foo b", a call to `xdg-mime query default
<mimetype>` for a non-existent mimetype would freeze. The freezing would make
some other programs that rely on xdg-mime freeze as well.
When xdg-mime enter the function `search_desktop_file`, it searches each
subdirectory with `for f in $dir/*/; do`, which expands to `for f in $dir/bar
foo baz/; do`, it will then search recursively "foo" and will go into a loop.
Using the command `find` might solve this issue.</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>