How to Create a desktop shortcut in ubuntu

Source: Internet
Author: User

If you are familiar with windows, creating a desktop shortcut is simply so easy. Right-click the file and choose "Send desktop shortcut. How can I create a desktop shortcut in ubuntu? The following describes how to create an eclipse shortcut.

Environment:

1) System Version: Ubuntu 14.04

2) Desktop Environment: Unity

3) You have downloaded and decompressed eclipse (Installation-free) to the/opt directory.

Detailed steps:

1) Create an eclipse. desktop file. The command is as follows:

sudo vim  /usr/share/applications/eclipse.desktop 
2) Add and save the following content to the new file:
[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;
Some of the above commands are explained below:

Exec represents the location of the application]

Icon represents the position of the application Icon]

The value of Terminal is false, indicating that the command line window is not started at startup. The value of true indicates that the command line window is started. [false is recommended]

Categories the content here determines the position of the created starter in the Application menu. The starter created according to the above method will appear 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 as: Categories = Application; Office;

3) eclipse shortcuts are displayed in/usr/share/applications, for example:

4) Place the icon in the Quick Start bar of Unity or in other places ~

Appendix:

1) Why does the double-click icon fail to start? Check whether the Exec path is correct.

2) is the icon displayed abnormal? Check whether the path of the input Icon is correct.

If anything is wrong, please make an axe correct. Thank you!

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.