This is, you don't add your application to a specific submenu. Instead you specify categories for your application and the menu system decides where to put it.
The only thing you have to do when preparing a package is to include a file named after your application with a .desktop extension. and save it to
/usr/share/applications
For example Abiword-wordprocessor.desktop
If you are just repackaging an application that already has a .desktop file, just make sure that .desktop file gets copied to the appropriate location (/usr/share/applications).
If you are packaging an application that does not provide its own .desktop file, then create one. The format of the file is very simple. Use the following example as a template. (Note that this file is Case sensitive)
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Name=Abiword wordprocessor
Icon=abiword_16.xpm
Comment=Abiword wordprocessor is a light but full featured word processor
Exec=abiword
Terminal=false
Type=Application
Categories=WordProcessor;Office;TextEditor
GenericName=Wordprocessor
Hidden=true
Encoding ---> Always leave it as UTF-8 for now
Name ---> Name that will appear in the Menu
Icon --> Icon file that will appear in the Menu. It can be a full path.
Comment --> A comment that may appear as a hint in the right WM.
Exec --> command to execute the application
Terminal --> dfoes the app run in a terminal?
Type --> Always "Application"
Categories --> a semicolon (;) separated list of categories. Read this for a full list of registered categories. An application can belong to multiple categories.
GenericName ---> A generic name, also used by some window managers to better qualify the menu entry. (e.g. some put the generic name in brackets beside the app name)
The full specification for .desktop files is here http://standards.freedesktop.org/deskto ... 01s04.html. You don't really need to read it unless you are really curious.