In Ubuntu12.04dashhome, 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 dashhome, 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.04beta2i386
In Ubuntu 12.04 dash home, each icon corresponds to a configuration file (filename Suffix:. desktop) in/usr/share/applications ). 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: Ubuntu 12.04 beta2 i386
Method:
1. Create the eclipse starter configuration file in the/usr/share/applications directory.
Cd/usr/share/applications
Sudo gedit eclipse. desktop
2. Edit eclipse. desktop and save it. Simple configuration example:
- #! /Usr/bin/env xdg-open
- [Desktop Entry]
- Version =1.0
- Type = Application
- Terminal =False
- Icon [zh_CN] =/home/xxx/Software/eclipse/icon. xpm
- Name [zh_CN] = Eclipse
- Exec =/home/xx/Software/eclipse
- Comment [zh_CN] = Eclipse
- Name = Eclipse
- Comment = Eclipse
- Icon =/home/xxx/Software/eclipse/icon. xpm
In this way, the eclipse starter is added to dash home: