Installing New Menu Items Into Gnome and KDE
The command to use is: xdg-desktop-menu
Plausible example:
# xdg-desktop-menu install --novendor ./myprogram.desktop
myprogram.desktop looks something like:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=/path/to/myprogram
Icon=/path/to/myprogram.png
Name=My Program
Categories=Application
Useful:
- to put your icon in the pre-existing folder named Office , the Categories would be:
Categories=Application;Office
Lots of examples in /usr/share/applicaions to look at.
Official details here:
http://standards.freedesktop.org/desktop-entry-spec/latest/