Hi,

Attached is a patch to make undo work with deleted items.

However, the way gmenu is currently written I don't think
that revert can resurrect the deleted items.

It reverts the item by iterating all children of the menu
and removing the .desktop files from the user's home
dir.

However deleted items (those that are set to hidden
in the .desktop file, rather than the menu) are not
included in the children, and so are not reverted.

I see a couple of options:

  1. remove the delete option. The user can just
      hide anything that they don't want.
  2. As well as iterating children, just clear out
      the user's .desktop files. Would this delete
      things that alacarte didn't create?

Thanks,

James


** Attachment added: "alacarte.diff"
   http://launchpadlibrarian.net/12923794/alacarte.diff

-- 
Alacarte does not recover deleted menu items
https://bugs.launchpad.net/bugs/118936
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to