Ubuntu adds the desktop icon to eclipse and ubuntueclipse

Source: Internet
Author: User

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

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.