Ticket #88 (closed Defect: invalid)

Opened 4 months ago

Last modified 4 months ago

Creating menu items

Reported by: ats Assigned to: taj
Priority: Medium Milestone:
Component: main Version: 1.2.5
Severity: Normal Keywords: installMenuItem desktop icon
Cc: jhasse@gmail.com

Description

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.

Change History

06/13/08 07:29:40 changed by Jan-Nik

  • cc set to jhasse@gmail.com.

06/13/08 07:57:34 changed by Jan-Nik

  • status changed from new to closed.
  • resolution set to invalid.

I think a category is missing inside your .desktop file. You can look into some examples at /usr/share/applications.

<CATEGORY> is only used for pre-KDE 3.2 menus, see: http://autopackage.org/api/installation.html#func-installMenuItem

I hope it's okay that I close this bug report as invalid.