Teach you to create desktop shortcuts under Ubuntu

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.