After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 576531 - alacarte crashed with IOError in copyItem() (when copying item with / in name)
alacarte crashed with IOError in copyItem() (when copying item with / in name)
Status: RESOLVED FIXED
Product: alacarte
Classification: Applications
Component: general
unspecified
Other All
: Normal critical
: 2.32
Assigned To: Alacarte Maintainer(s)
Alacarte Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-03-24 08:53 UTC by Andreas Moog
Modified: 2012-03-05 15:56 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Patch correcting the issue (1.05 KB, patch)
2009-03-24 08:54 UTC, Andreas Moog
none Details | Review
Don't crash when a desktop has a / in the name (962 bytes, patch)
2011-08-22 18:56 UTC, Olav Vitters
committed Details | Review

Description Andreas Moog 2009-03-24 08:53:32 UTC
Steps to reproduce:
1. Open Alacarte
2. Try to copy item with "/" in Name
3. Crash


Stack trace:
Traceback (most recent call last):
  • File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 416 in on_menu_tree_drag_data_received
    self.editor.copyItem(item, new_parent)
  • File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 290 in copyItem
    keyfile.write(open(out_path, 'w'))
IOError: [Errno 2] No such file or directory: '/home/username/.local/share/applications/Mozilla Thunderbird Mail/News.desktop'

Other information:
Reported on Launchpad:
http://bugs.launchpad.net/bugs/205463
Comment 1 Andreas Moog 2009-03-24 08:54:34 UTC
Created attachment 131233 [details] [review]
Patch correcting the issue

The attached patch corrects the issue by replacing the "/" in the filename with "-".
Comment 2 Olav Vitters 2011-08-22 18:56:31 UTC
The following fix has been pushed:
49cf1a2 Don't crash when a desktop has a / in the name
Comment 3 Olav Vitters 2011-08-22 18:56:35 UTC
Created attachment 194411 [details] [review]
Don't crash when a desktop has a / in the name

Reported by Andreas Moog
Comment 4 Vadim Rutkovsky 2012-03-05 15:56:46 UTC
Reproduced in 0.13.2-2ubuntu4:

Created a launcher "Mail/News"
Copied to another category

IOError: [Errno 2] No such file or directory: '/home/vadik/.local/share/applications/Mail/News.desktop'