Comment 10 for bug 118936

Revision history for this message
James Westby (james-w) wrote :

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