The links/short cuts that you see in the Gnome menu are all just simple text files, that also point to an icon.
These text files can be found in /usr/share/applications/.
Before you start making the text file for your own menu link, you need to either find an icon to use that’s already in the pixmaps folder, or make an icon & place it in the pixmaps folder yourself.
The pixmaps folder is the standard folder for holding the icons of programs & can be found at /usr/share/pixmaps/.
Icons need to be 48×48 pixels size wise & in the .png format.
Once you have your icon sorted out, you can start creating your link..
sudo gedit /usr/share/applications/nameofyourprogram.desktop
Make sure that the name of your programs all lower case letters only & you must add .desktop to the end of it..
In the text editor, you’ll need to enter (at the very least) the following lines..
Encoding=UTF-8 (Type of encoding for the text file)
Name=SpeedPad (Name of the program, as you want it to appear in the menu)
Comment=Configuration tool for Nostromo Speed Pads (Description of program)
Exec=nostromo_config (Start command for the programme)
Icon=usr/share/pixmaps/n50,png (Location of the icon you want to use)
Terminal=false (Change this to true if the program needs to run in a terminal)
Type=Application (Type of program it is)
Categories=Application;Utility; (Part of the menu that you want the link to show up in)
Here’s a copy of the list for you to copy & paste without all the additions..
There are other options that you can add, but these are the most basic. Don’t include the brackets or anything in-between them.
When your finished adding your options, save the file.
One of the most important lines in the text file is Categories. This line dictates where on the menu your link will show up.
Here’s a quick list with the basic Gnome menu items for Ubuntu & how the categories relate to them..
Accessories – Application;Utility;
Games – Application;Game;
Graphics – Application;Graphics;
Internet – Application;Network;
Office – Application;Office;
Sound & video – Application;AudioVideo;
Programming – Application;Development;
System Tools – Application;System;
Seem to be in a different folder?
Preferences – Settings;
Administration – Settings;System;
You can add other categories to them too if you like. If the programme that you’re making a link for only works in Gnome, you can add..
If it’s built with the GTK tool kit, you can add..
If you want some more examples then go into the /usr/share/applications/ folder, copy some of the pre-made links to your desktop & open them up with the text editor. It won’t take you long to figure out what options you need.
This is only a quick run through of the basics to editing the Gnome menu, but it should allow you to create your own menu links without having to install a dedicated menu editor 🙂