I wanted to create a menu item (Ubuntu desktop) through the default.apspec file.
So I tried (in default.apspec, section [Install]):
installMenuItem "Other/My Test App" MyTestApp.desktop
and MyTestApp?.desktop:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name[en_US]=MyTestApp
Exec=MyTestApp
Comment[en_US]=MyTestApp
Name=MyTestApp
Comment=Testing desktop menu entry from .apspec file
The resulting package file tells me it succeeds with creating this menu entry, but nothing shows up in the menu. (I know, there's no Icon entry in the file, but on the desktop, Ubuntu shows a default icon instead for this .desktop file).
Some questions:
- A working sample including creation of a menu item would be really appreciated. Without it, I have to dig up specification files and do a lot of trial and error.
- What does the <CATEGORY> argument to installMenuItem mean? (not sure if it refers to enumerated allowed menunames, or if any string is allowed here). My example didn't result in anything.
Any suggestions / pointers on how to install menu items are appreciated.
Regards
// ATS.