Gnome 'Applications' menu suddenly empty

By robrt on Sunday 19 July 2009 14:32 - Comments (2)
Categories: Linux, Ubuntu, Views: 3.596

Just had a strange bug using the "Main menu" tool in Gnome; after some fiddling around it removed all items from my "Applications" menu.
For some reason this tool removed all contents of the file, rendering my gnome panel useless.

Luckily, there's a pretty straight-forward fix for this.

• Open a terminal window (Alt+F2 -> gnome-terminal)
• Verify the file is empty: cat ~/.config/menus/
• If it is, edit the file: nano ~/.config/menus/
• Paste the following in the file:

PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
<MergeFile type="parent">/etc/xdg/menus/</MergeFile>

• Save & exit
• Restart the Gnome panel using "killall gnome-panel"

That's all. :)