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