A friend who is accustomed to using Windows to create a desktop shortcut is simply so easy, right-click on the file and select Send Desktop shortcut. It's OK. How do I create a desktop shortcut for Ubuntu? The following is an example of creating an Eclipse shortcut. A brief introduction.
Environment:
1) System version number: Ubuntu 14.04
2) Desktop environment: Unity
3) Download and unzip eclipse (install free) to/opt folder
Specific steps:
1) New file Eclipse.desktop, commands such as the following:
sudo vim
2) Add the following content to the new file and save it as follows:
[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;
explain a few of the above commands:
exec represents the location of the application "change as it is"
Icon represents the location of the application icon "changes as it is"
A value of terminal of FALSE indicates that the command line form is not started at startup and a value of TRUE indicates that the start command line form is "recommended false"
Categories The content here determines the position of the created starter in the Application menu, the starter created in accordance with the above is now in the application-internet, and so on, the false idea is to create the starter in the application-Office, The last line above should be written as: Categories=application;office;
3) You will see a shortcut to eclipse in/usr/share/applications, for example:
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvbgpnc3r1zhk=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
4) Place this icon in Unity's high-speed boot bar or anywhere else.
Report:
1) Double-click the icon does not start? Please check that the correct path for the exec is filled in.
2) The icon is not displayed properly? Please check that the path to the icon you filled in is correct.
If there is something wrong with it. Please also treatise. Thank you!
Teach you to create desktop shortcuts under Ubuntu