How to create a desktop shortcut under Ubuntu

Source: Internet
Author: User
Tags command line

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/

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.