Bug 18567 - xdg-desktop-icon breaks with spaces in path
Summary: xdg-desktop-icon breaks with spaces in path
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: 1.0
Hardware: Other Linux (All)
: medium normal
Assignee: Fathi Boudra
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-17 03:09 UTC by Marc Eppelmann
Modified: 2009-08-10 02:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Marc Eppelmann 2008-11-17 03:09:07 UTC
xdg-desktop-icon -install fails if 
path to *.desktop file contains spaces

This could happen in line 523 in the line:

basefile=`basename $desktop_file`

which should be:

 basefile=`basename "$desktop_file"`

but I'm not sure.

Marc
Comment 1 Fathi Boudra 2009-07-26 09:46:32 UTC
You're right.

Fixed in CVS revision 1.19
http://webcvs.freedesktop.org/portland/portland/xdg-utils/scripts/xdg-desktop-icon?r1=1.18&r2=1.19

fixed also on every basename usage.

Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.