Ubuntu adds the desktop icon to eclipse and ubuntueclipse
Eclipse can be used for downloading and decompressing, but it cannot be used without a desktop icon. You have written an eclipse. desktop file and put it in the/usr/share/applications/directory. Then you can drag it to the startup bar and it will be OK.
[Desktop Entry]
Version = 1.0
Name = eclipse
Exec =/opt/kangear/eclipse
Icon =/opt/kangear/eclipse/icon. xpm
Type = Application
Name [zh_CN] = eclipse
How to add the installed software startup icon to the desktop in ubuntu?
First, we need to know that all the programs in Ubuntu Dash are in/usr/share/applications, so our idea is very simple-just set up something similar to a "shortcut. So the first step is to open the terminal and enter
Sudo gedit eclipse. desktop # create an eclipse. desktop file
Next, edit the desktop file in open gedit. Note that the code behind Exec and Icon should be replaced according to the actual installation location of your eclipse. The specific code is as follows:
[Desktop Entry]
Name = eclipse
Name [zh_CN] = eclipse
Comment = eclipse Client
Exec =/usr/lib/jdk/eclipse
Icon =/usr/lib/jdk/eclipse/icon. xpm
Terminal = false
Type = Application
Categories = Application;
Encoding = UTF-8
StartupNotify = true
Save the file and return to the terminal to fix the permission of the file. Code:
Sudo chmod 777 eclipse. desktop
Now back to the main directory, you should be able to see a big eclipse icon (to be honest, it's a little scary, but it doesn't matter)
Now, we need to copy this file to/user/share/applications.
Last blow-click dash and enter eclipse in the search box on the top. You should be able to search for it now. Click it to see if it can be opened. You can drag the mouse to the starter or directly drag it to the desktop.
Why is the eclipse icon on the Ubuntu Desktop large?
Can this be adjusted? Turn on the resolution settings and adjust the Icon size at the bottom