Whenever I use the KDE menu editor to change the layout of the KDE application menu, the configuration file ~/.config/menus/applications-kmenuedit.menu changes.

This file seems to collect a lot of garbage every time an item is created, moved, changed, or deleted. It has now grown to over 100kB and is very confusing to read, and I am having trouble with menus that refuse to be renamed. There are still entries for applications I removed years ago.

Is there any way I can clean this file from unnecessary junk that's accumulated?
I don't want to delete it and start from scratch because it would be a lot of work to recreate my highly customized menus

2 Answers 2


I think the menu file is generated from the *.desktop files on your system.

You may look at the following locations

  • /usr/share/applications
  • ~/.local/share/applications/

And remove whatever you don't need. (Or add Hidden=true the desktop file)

  • If I were to delete the menu file and restart from scratch then it would be recreated from the .desktop files. But starting from scratch is exactly what I am trying to avoid, because I want my personal menu structure
    – PiedPiper
    Nov 13, 2017 at 14:53
  • If the menu file is deleted, then /etc/xdg/menus/applications.menu is used as the default
    – PiedPiper
    Nov 15, 2017 at 11:44
  • note to self for OpenSuse: /home/martin/.local/share/applications/OmegaT.desktop /home/martin/.config/menus/applications-kmenuedit.menu Nov 17, 2021 at 13:25

Open a terminal and give the command: kmenuedit. That's all, you can edit your menu via a GUI.

  • That doesn't solve the problem. Editing the menu with kmenuedit just leaves even more cruft in the menu file. Deleting an entry leaves the entry in the file, but marked as 'deleted'. Moving an entry leaves the original entry with a link to the new one.
    – PiedPiper
    Feb 24, 2022 at 13:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .