Adding a Menu Entry
In this example, we will add Firefox to the Internet submenu.
To start off, we need to open , so on the application launcher menu, click Edit Applications... to start . After has started, select Internet as shown in picture below.
Select Internet
Select Internet
Once you have selected Internet, click on File New Item..., opening the New Item dialog, as shown below. Type the name of the program you want to add, in this case, type firefox.
New Item dialog
The New Item dialog.
Press return, and you should see something like the picture below in the main window.
New Item
The new item created.
Now lets fill in the Description:, in this case type Web Browser.
The appearance how description and name will be displayed depends on the settings in the application launcher ⪚ Web Browser (Firefox) or Firefox (Web Browser).
We will need to fill in the executable name in the Command: field, in this instance we will type firefox.
The command has to be in your PATH variable or you have to specify the full path to the executable. If you do not know the executable name of an application use the locate command to search for the desktop file and enter the string from the Exec line as command here.
Following the command, you can have several place holders which will be replaced with actual values when the program is run:
%f - a single file name
%F - a list of files; use for applications that can open several local files at once
%u - a single
%U - a list of s
%d - the folder of a file to open
%D - a list of folders
%i - the icon
%m - the mini icon
%c - the caption
For example: if you want to firefox to start your web browsing at www.kde.org - instead of firefox you would type firefox %u www.kde.org.
Most applications accept additional options ⪚ the name of a defined profile like or . To see all options for an application launch applicationname --help in .
We would like to have a more creative icon, so we will click the generic icon sitting beside Name: (note, the default icon may be blank, in which case click in the area to the right of the name entry box.) It will bring the Select Icon dialog which will let us choose the new icon, as shown below.
Select Icon dialog
The Select Icon dialog.
We choose the firefox icon from the list, and press . Your finished screen should probably look something like the screenshot below.
Done screenshot
This is what the completed menu item should looks like.
The place of the new menu item can now be changed using Move Up and Move Down buttons on the toolbar or by dragging with the mouse.
The submenu items can be sorted using Sort button on the toolbar or Edit Sort submenu items.
Click File Save, wait for the Updating System Configuration dialog to get finished, you should find Firefox in the application launcher Internet submenu.