Comment 1 for bug 340285

Revision history for this message
Alex Ruddick (alexrudd0) wrote :

Well, as I said I've never done this before so here goes nothing.

I've tried to attach a patch that applies to MenuEditor.py. I started from alacarte-0.11.9 obtained from apt-get source alacarte.

The patch contains a function checkDuplicate(item) that checks whether the current item already exists system-wide. I imagined it being called when a .desktop file in ~/.local was going to be edited. If the local file to be written was the same as the system version, the local version should be deleted.