I've added a file
/etc/xdg/menus/applications-merged/foo.menu
and the stuff in foo.menu all works in gnome. But the menu items didn't show up, even after rebooting.
I then tried adding a menu item "bogusmenu" using kmenuedit. After hitting Save in kmenuedit, bogusmenu appeared, and the menu item associated with foo.menu also showed up! So what's kmenuedit's secret updater code doing, and how can I call it from command line (specifically, an installation script)?
This is in Linux Educacional 4, which is based on Ubuntu 10.04 with KDE 4.4.5.
Some things which haven't worked:
- Using
xdg-desktop-menu
, touching the files in /etc/xdg/menus, running kbuildsycoca.