Accustomed to using Windows friend to create a desktop shortcut is so easy, the right mouse click on the file--> choose to send desktop shortcuts, OK. How do you create desktop shortcuts for Ubuntu? Here's an example of a shortcut to creating eclipse, briefly.
Environment:
1) System version: Ubuntu 14.04
2) Desktop environment: Unity
3 has already downloaded and extracted eclipse (install free) to the/OPT directory
Detailed steps:
1 new file Eclipse.desktop, command as follows:
sudo vim/usr/share/applications/eclipse.desktop
2 Add the following in the new file and save:
[Desktop Entry]
Encoding=utf-8
name=eclipse
comment=eclipse IDE
exec=/opt/eclipse/eclipse
icon=/opt/eclipse/ ICON.XPM
terminal=false
startupnotify=true
type=application
categories=application;development ;
A few of the above commands are explained briefly:
exec represents the location of the application "modify as necessary"
Icon represents the location of the application icon "modify as necessary"
A value of terminal of FALSE indicates that the command Line window does not start at startup, and a value of TRUE indicates that the Start Command Line window is recommended as false
Categories The content here determines where the starter is created in the Application menu, and the starter created in the above notation appears in the application-internet, and so on, if you want to create a starter in the application-Office, The last line above should be written: Categories=application;office;
3 you will see the Eclipse shortcuts in/usr/share/applications, as shown in the following figure:
4 Put this icon on the unity of the Quick Launch bar or other location as you will
Report:
1) Double-click icon does not start? Please check if the correct path for exec is filled in.
2) icon display is not normal? Please check if the path to the icon is correct.
This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/