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!