Ubuntu10.04 manually add an application to the System Menu Bar
Software Version:
Operating System: ubuntu10.04
Kernel version: Linux version 2.6.32-41-generic
Directory:
1. Requirements
2. Add Method
3. References
1. Requirements
Sometimes, after installing the software in Ubuntu, we can only use the command on the terminal to start it. The following uses eclipse as an example to record how to add it to the system menu bar.
2. Add Method
The method to add is simple. There are many files ending with desktop in the/usr/share/applications directory. They are the shortcuts we see in the menu. Create an eclipse. desotop file and write the following content.
[Desktop Entry]Name=eclipseType=ApplicationExec=/usr/share/eclipse/eclipseIcon=/usr/share/eclipse/icon.xpmCategories=Application;Utility;Terminal=false
Keyword description:
Name: the name of the shortcut.
Type: program type.
Exec: the program to be executed.
Icon: the icon of the execution program.
Categories: the location where the shortcut is displayed.
Terminal: whether to use a terminal.
After saving, the shortcut appears in Ubuntu ---> Applications ---> accessories.
3. References
Http://wdwheyr.iteye.com/blog/945008.
Http://hi.baidu.com/pyc21/blog/item/8765bf0f9bec5c3b6059f335.html.