Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.
share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

OK, for me what worked was:

Take the applications-kmenuedit.menu file generated the first time you do a save inside KMenuEdit, clean up the "bogus" entry (or whatever change needed to get KMenuEdit to actually save a file there), and then copy that into either /etc/xdg/menus or ~/.config/menus. Magic file: bah!

share|improve this answer
add comment

The place where it stores the menu files are usually in /usr/share/menu or /usr/share/applications.

Those are the standard places.

share|improve this answer
add comment

I also had a problem with my KDE menu. This occurred after I installed the Openbox desktop to test etc. For some reason I lost my menu list of applications after I returned to the Plasma desktop.

I therefore removed the Openbox desktop via muon but still had the problem. I then went to /etc/xdg/menus and found an entry for Openbox still present. I then removed obconf, the preference manager for Openbox, via the muon package manager and this fixed the problem.

I hope this helps.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.