If you have installed a program, drag it to the desktop.
Scope of this section
This article takes eclipse as an example:
Www.2cto.com
After downloading eclipse and decompressing it, there will be an icon named "icon. xpm ".
To prevent conflicts, rename it eclipse. xpm
Copy the file to the/usr/share/pixmaps/directory.
If you do not have the permission, you can copy the Java code sudo cp ~ in the command line ~ /Develop/eclipse. xpm/usr/share/pixmaps/
Then execute the following command in the command line: Java code cd ~ /Desktop/vi eclipse. desktop Add the following content www.2cto.com #! /Usr/bin/env xdg-open [Desktop Entry] Version = 1.0 Type = Application Terminal = false Icon [en_US] = eclipse Name [en_US] = eclipse Exec =/home/jimmy /develop/eclipse Name = eclipse Icon = eclipse
The executable file Exec =/home/jimmy/develop/eclipse
Adjust according to your own segment
After saving, you can see the shortcut on the top of the desktop.