PDA

View Full Version : Editing Gnome menu in Fedora Core 2


Jack Malmostoso
21st June 2004, 02:52 AM
As you may have noticed, in FC2 it is not possible to edit gnome menus either by applications:/// folder or by that lovely hack that worked since RH9.
To edit the menu the way you want in FC2 you should get to know a little deeper how the menu works. At the start of gnome-panel, some directories are scanned and in /usr/share/applications are stored a lot of *.desktop files, which happen to be the responsible for the menu entries: read this paper to understand it better:
http://www.gnome.org/start/2.0/menuediting.html
*.desktop files are simple text files structured like this:

[root@coppermine applications]# cat lopster.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Lopster
GenericName=Lopster
Comment=OpenNap Client
Exec=lopster
Icon=lopster.png
Terminal=false
Type=Application
Categories=Application;Internet;


You have probably gotten where I am going: to add a menu entry just create a similar file (as root) and place it in the right folder.
It is sure more annoying than doing drag-n-drop, but it is definitely easy and (most important) it works!
Hope it helps!