Create a software desktop shortcut in Ubuntu

Source: Internet
Author: User

By default, UBUNTU stores the automatically installed software shortcuts in the/usr/share/applications directory. If you want to create a desktop shortcut, right-click and choose Copy> desktop,
 
The above method is implemented after the system automatically installs the software. Sometimes we download some software from the Internet for manual installation. How can we create a desktop shortcut for the software? Take eclipse as an example. First download the eclipse software package from the official website, decompress it directly under a directory, and double-click the eclipse file to start eclipse. However, if you want to open eclipse every time, start from the installation directory, isn't it a little troublesome? Follow the steps below to create a desktop shortcut.

1. Create an object and copy the following code.

Here we only need to pay attention to three places, namely the exec = software execution file path, icon = shortcut icon (if any), name = shortcut name. Modify the code based on your own software, save the code, and close the file.
[Desktop
Entry]
Categories=Development;
Comment[zh_CN]=
Comment=
Exec=/home/owen/Software/eclipse/eclipse
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/home/owen/Software/eclipse/icon.xpm
MimeType=
Name[zh_CN]=eclipse
Name=eclipse
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=owen

2. Change the file name to eclipse. javastop3 and add executable permissions to the file.

You can use the CHMOD + x desktop file or right-click it to modify it.

4. copy the file to the desktop

Note: In versions earlier than ubuntu11.04, there seems to be a simpler way to create a desktop shortcut: Right-click desktop-create a starter,

Well written. This is a good thing.

Share: 

By default, UBUNTU stores the automatically installed software shortcuts in the/usr/share/applications directory. If you want to create a desktop shortcut, right-click and choose Copy> desktop,
 
The above method is implemented after the system automatically installs the software. Sometimes we download some software from the Internet for manual installation. How can we create a desktop shortcut for the software? Take eclipse as an example. First download the eclipse software package from the official website, decompress it directly under a directory, and double-click the eclipse file to start eclipse. However, if you want to open eclipse every time, start from the installation directory, isn't it a little troublesome? Follow the steps below to create a desktop shortcut.

1. Create an object and copy the following code.

Here we only need to pay attention to three places, namely the exec = software execution file path, icon = shortcut icon (if any), name = shortcut name. Modify the code based on your own software, save the code, and close the file.
[Desktop
Entry]
Categories=Development;
Comment[zh_CN]=
Comment=
Exec=/home/owen/Software/eclipse/eclipse
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/home/owen/Software/eclipse/icon.xpm
MimeType=
Name[zh_CN]=eclipse
Name=eclipse
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=owen

2. Change the file name to eclipse. javastop3 and add executable permissions to the file.

You can use the CHMOD + x desktop file or right-click it to modify it.

4. copy the file to the desktop

Note: In versions earlier than ubuntu11.04, there seems to be a simpler way to create a desktop shortcut: Right-click desktop-create a starter,

Well written. This is a good thing.

Related Article

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.