[kde-linux] Editing the K menu

James Richard Tyrer tyrerj at acm.org
Sat Jul 9 05:49:03 UTC 2005

Marcelo Amorim wrote:
> Thanks! But I still need some help.
> I'd like to create a new category, called "MODELO",
> and inside this I'd like to put my applications,
> developed at my job.

You need to create two files for the menu.

First a file for the directory which needs to go in:


This is quite simple, for example to create the Engineering category:

[Desktop Entry]


This simply states two things.  The name to appear in the menu 
"Engineering" and the name of the icon to be used in the menu "package". 
  You can add language tagged names in the usual manner if you wish.

Then you need an XML file to add the entry to the menu in:


Again in my example this would be:

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"



This again has the name of menu entry "Engineering" and it has the of 
the 'directory' file "engineering.directory".  It also has the name of 
the Category which in this case is also "Engineering" but it doesn't 
have to be.  This is the what you put in the 'desktop' files for the 
apps that you want listed in this category:


According to the standard, if this isn't one of the standard categories, 
it should be prefixed with "X-" (e.g. X-Unusual).

So, if you simply substitute your name, icon, and category into my 
examples, it should work.

If you need to have more than one app category included in your new menu 
division, you can list them on additional lines in the "Include" section.


More information about the kde-linux mailing list