Summary: | x11-misc/xdg-utils-1.1.2 : xdg-mime does not handle paths correctly ( line 323: [: too many arguments ) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kent Fredric (IRC: kent\n) (RETIRED) <kentnl> |
Component: | Current packages | Assignee: | Freedesktop bugs <freedesktop-bugs> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | annulen, floppym, johu, nbowler, plevine457, tsmksubc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gitlab.freedesktop.org/xdg/xdg-utils/issues/107 | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=540628 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | xdg-utils-fix-unquoted-paths.patch |
Description
Kent Fredric (IRC: kent\n) (RETIRED)
2017-07-05 00:04:11 UTC
According to the Desktop Entry Specification, spaces are not valid in .desktop file names. https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s02.html "The valid characters (aside '.') are [A-Z][a-z][0-9] along with dash ('-') and underscore ('_'). Components may not begin with a digit." That said, this still seems like sloppy shell coding. Please report this to upstream and post the link here to let us track the issue: https://bugs.freedesktop.org/enter_bug.cgi?product=Portland&component=xdg-utils Is this still valid with 1.1.3? (In reply to Johannes Huber from comment #3) > Is this still valid with 1.1.3? /usr/bin/xdg-mime: line 323: [: too many arguments /usr/bin/xdg-mime: line 325: [: too many arguments $ xdg-mime --version xdg-mime 1.1.3 Yes. Created attachment 576710 [details, diff]
xdg-utils-fix-unquoted-paths.patch
Could someone who can reproduce the issue please test out this patch and confirm it fixes the problem?
Tried your patch, works fine here. Thanks! |