GNOME Bugzilla – Bug 398366
drag and drop doesn't work properly when items have spaces in their name
Last modified: 2007-08-02 14:04:32 UTC
Please describe the problem: If I drag one of the entrys on the entries list (the one in the middle) to a menu entry on the left (category) list, alacarte hides this entry from the list. So I, as an user, expect now, that alacarte changed the menu structure, and put this menu entry to another menu categorie. But alacarte doesn't really make this change. Steps to reproduce: 1. Open alacarte 2. click for example on the games menu entry in the left list 3. Drag one entry of the list in the middle, and drop it to another category in the left menu (for example "internet") 4. See what happens (in the end, nothing) Actual results: Nothing, that's the problem Expected results: change of menu structure Does this happen every time? Other information:
I cannot reproduce, works perfectly here.
Happens with 0.11.3 as well, dnd from an item to an another category does nothing. Ubuntu bug about that: https://launchpad.net/alacarte/+bug/86026 "Drag & drop does not work in Alacarte. Drag & drop does not work in Alacarte. Drag & drop seems to move items but nothing really happen." That happens while doing that for example: * open alacarte * click on a category * dnd an item for that category over an another category The view is switched to the other category after the dnd, the item is not listed there though
*** Bug 428395 has been marked as a duplicate of this bug. ***
*** Bug 441776 has been marked as a duplicate of this bug. ***
Can confirm this bug under Ubuntu Feisty with Gnome 2.18.1 installed and GNOME alacarte 0.11.3.
Created attachment 92896 [details] [review] Proposed fix The problem seems to be caused by having whitespace in the new .desktop file name. This is fixed by ensuring that util.getUniqueFileId returns a filename without spaces. Other whitespace characters aren't checked, but I assume that they won't ever be a problem. :)
Actually, that patch doesn't solve all the problems - see https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/96727. I'm currently working on this.
Actually the real bug is in an Ubuntu patch for gnome-menus. Closing bug.
Hm, that would explain why I couldn't find the bug in Alacarte :)