[Portland-bugs] [Bug 66605] New: xdg-desktop-menu does not support filenames with spaces
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jul 4 17:39:59 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=66605
Priority: medium
Bug ID: 66605
Assignee: portland-bugs at lists.freedesktop.org
Summary: xdg-desktop-menu does not support filenames with
spaces
Severity: normal
Classification: Unclassified
OS: All
Reporter: mgiuca at chromium.org
Hardware: All
Status: NEW
Version: 1.1.0 rc1
Component: xdg-utils
Product: Portland
Steps to reproduce:
1. Create a .desktop file with a vendor prefix and a space in the name. e.g.,
"foo-bar baz.desktop".
2. Run: xdg-desktop-menu install --mode user "foo-bar baz.desktop"
Expected result: The file is copied to "~/.local/share/applications/foo-bar
baz.desktop".
Actual result:
xdg-desktop-menu: filename 'baz.desktop' does not have a proper vendor prefix
A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated
with a dash ("-"). An example filename is 'example-baz.desktop'
Use --novendor to override or 'xdg-desktop-menu --manual' for additional info.
This is because it thinks I am passing two separate filenames ("foo-bar" and
"baz.desktop") even though I correctly used quotes on the command line. This is
caused by line 998 of the script, which concatenates all arguments ending in
.desktop onto $desktop_files, separating each argument with a space. After that
point, it is impossible to tell which spaces separate arguments and which are
part of the filename.
(Note that if all of the space-separated parts of the filename contain a "-",
you don't see the above error, it just fails silently because it can't find the
files it is trying to copy.)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20130705/6c19ad58/attachment.html>
More information about the Portland-bugs
mailing list