From: http://wiki.lxde.org/en/Main_Menu
Menu entries are stored in ~/.local/share/applications or /usr/share/applications (in my case it was the first one only). A menu entry is simply a text file with the extension .desktop. The basic structure of an entry is:
Code:
[Desktop Entry]
Encoding=<used encoding for example UTF-8>
Exec=<path of a binary or script used to start the programm>
Icon=<path to the icon for the entry for example PNG>
Type=<type for example Application>
Terminal=<true|false to start in terminal>
Name=<displayed name in the menu>
GenericName=<description of the entry>
StartupNotify=<true|false for startup notification>
Categories=<category>
The given example:
Code:
[Desktop Entry]
Encoding=UTF-8
Exec=warsow
Icon=/home/USER/my/icons/wsw-icon_80x80.png
Type=Application
Terminal=false
Name=Warsow
GenericName=warsow
StartupNotify=false
Categories=Game
I tried to use xmp for an icon but so far only PNG has worked out. Notice also that category's name might be different from what you see in the menu. A vivid exception is the category Programming, which is actually Development in the desktop entry (found this out while trying to add Eclipse (not from the repositories) and it always landed either in the nothingness or in Others).
The wiki also states that root privileges are needed but this only applies, if you are editing the desktop entries in /usr.
Although I like the idea behind the LXMED-tool, I don't like the fact that it is written in Java. Not all people have Java installed (for some reason). Ncurses and/or GTK+ (lxde is using GTK+ so it's already there) interface would be much better.
Bookmarks