[Portland-bugs] [Bug 107416] New: xdg-mime can't handle desktop file with spaces in their name
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Jul 29 09:33:38 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=107416
Bug ID: 107416
Summary: xdg-mime can't handle desktop file with spaces in
their name
Product: Portland
Version: 1.1.0 rc3
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: xdg-utils
Assignee: portland-bugs at lists.freedesktop.org
Reporter: jean-18-09 at hotmail.fr
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/portland-bugs/attachments/20180729/71e850e5/attachment.html>
More information about the Portland-bugs
mailing list