Gnome 'Applications' menu suddenly empty

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

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 applications.menu 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 applications.menu file is empty: cat ~/.config/menus/applications.menu
• If it is, edit the file: nano ~/.config/menus/applications.menu:
• Paste the following in the file:

<!DOCTYPE Menu
PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'>
<Menu>
<Name>Applications</Name>
<MergeFile type="parent">/etc/xdg/menus/applications.menu</MergeFile>
</Menu>


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

That's all. :)