Address: http://blog.chinaunix.net/uid-26772897-id-3169468.html
In ubuntu12.04 dash home, each icon corresponds to a configuration file in/usr/share/applications (the file name suffix is. desktop ). Therefore, to add a custom program initiator in Dash home, you need to create the corresponding configuration file under the file directory. For the syntax of the configuration file, see the configuration file in this directory.
Take eclipse as an example. The method is as follows.
System: ubuntu12.04 beta2 i386
Method: 1. Create the eclipse starter configuration file in the/usr/share/applications directory.
- CD/usr/share/Applications
- Vim eclipse. Desktop
2. Edit eclipse. desktop and save it. Simple configuration example:
- [Desktop entry]
- Version = 1.0
- Name = eclipse
- Exec =/home/Hu/soft/Eclipse/eclipse
- Terminal = false
- Icon =/home/Hu/soft/Eclipse/icon. XPM
- Type = Application
- Categories = Development
For example:
[Desktop entry]
Version = 1.0
Name = eclipse
Exec =/home/AOE/tools/eclipse-mobile
Terminal = false
Icon =/home/AOE/tools/eclipse-mobile/icon. XPM
Type = Application
Categories = Development