Create a desktop shortcut in CentOS

Source: Internet
Author: User

Create a desktop shortcut in CentOS

1. Download eclipse
Is: bytes.
2. Create an eclipse folder under the home Directory, move the file to eclipse and execute tar-zxvf eclipse-linuxtools-indigo-SR2-incubation-linux-gtk.tar.gz

After decompression, an eclipse directory is generated under the current directory.

3. Start eclipse
Run./eclipse.

Create a desktop shortcut in Linux

Detailed steps:

Method 1

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

[Java] view plaincopy
  1. Sudovim/usr/share/applications/eclipse. desktop
2) Add the following content to the new file and save it: [java] view plaincopy
  1. <Spanstyle = "color: #333333"> [using topentry]
  2. Encoding = UTF-8
  3. Name = eclipse
  4. Comment = EclipseIDE
  5. Exec = </span> <spanstyle = "color: # ff0000">/eclipse </span> <spanstyle = "color: #333333">/eclipse
  6. Icon = </span> <spanstyle = "color: # ff0000">/eclipse </span> <spanstyle = "color: #333333">/eclipse/icon. xpm
  7. Terminal = false
  8. StartupNotify = true
  9. Type = Application
  10. Categories = Application; Development; </span>
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:

4) copy the icon to the desktop, right-click it, and paste it.

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.

Method 2

Create a desktop shortcut for eclipse

In the blank area of the linux desktop, right-click it and a dialog box will pop up. Select "create Launcher" ("new starter" in Chinese) and click "Create Launcher" ("create shortcuts" in Chinese ") in the dialog box, select Application (Chinese "Application") and enter the name "eclipse". In Command (Chinese "Command"), find the eclipse Startup Program (for example, mine is: /eclipse), double-click the icon on the upper left side to bring up a selection icon dialog box. Find the eclipse installation directory and find the icon in the directory. xpm: Select "Open" (OK). After setting it, it is similar to (opt in the figure should be eclipse): use others' diagrams.

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.