Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to set icon for Launcher. it has file named icon.xpm, but its being ignored by the icon set wizard. I tried to change it to .ico file, but it is still getting ignore. any ideas?

share|improve this question
up vote 7 down vote accepted

If eclipse is installed from software center (version 3.5.2) copies of the eclipse icon are put into following places:

  • /usr/share/icons/hicolor/16x16/apps/eclipse.png
  • /usr/share/icons/hicolor/32x32/apps/eclipse.png
  • /usr/share/icons/hicolor/48x48/apps/eclipse.png
  • /usr/share/pixmaps/eclipse.png

Maybe copying the icon in this places (with the right size) solves your issue.

share|improve this answer
it does not work (I did not try all of the sizes, but most of them). maybe its the extension? the png is not found by default by Ubuntu and when I copy the full path than no icon is found :( – UAdapter May 6 '11 at 7:10
+1 for question, I need 3.6 at least for work, and the only solution were to download precompiled bundle. And no icon were recognized for an application by Ubuntu (11.04). Moreover, package from ppa:eclipse-team/..., which is currently at version 3.6.2, is absolutely incomplete for work:\ – Max Jul 12 '11 at 17:37
so, if you had already found a fix for it, please, commit an answer! – Max Jul 12 '11 at 17:37
This answer does not work. Please un-mark it. – Catskul Nov 26 '12 at 19:45

I added the icon to /usr/share/pixmaps , but the name of the icon was not eclipse.xpm instead it was icon.xpm

In the terminal:

sudo cp /yourEclipseFolder/icon.xpm /usr/share/pixmaps/eclipse.xpm
share|improve this answer
OK, thanks for the answer, it helped me. As well, what I did was just rename the icon to eclipse.xpm and then copy the icon to /usr/share/pixmaps. – Mark Waschkowski May 30 '12 at 14:09
And if you prefer to see it as a bash command: sudo cp /yourEclipseFolder/icon.xpm /usr/share/pixmaps/eclipse.xpm. – H2ONaCl Aug 23 '12 at 9:19

I copied




(having extracted eclipse into /opt) and both launcher and desktop eclipse icons reappeared (having mysteriously disappeared).

Note: I had also copied all the sizes as recommended above but it wasn't until I copied into /usr/share/pixmaps that the icon appeared

share|improve this answer

Go to terminal and type sudo leafpad /usr/share/applications/eclipse.desktop, then edit the file to replace path_to/icon.xpm in the following example with the file path to your icon:

[Desktop Entry]
Comment=Eclipse IDE

For example, mine is /usr/lib/eclipse/icon.xpm.

share|improve this answer
Your solution works fine. Thank you! – quangtruong1985 Dec 30 '12 at 4:08
tried the same but didnt work for me, the answer for this question… worked – tinker_fairy Nov 19 '14 at 17:03

I just had this problem with another program, I placed the .png files in the icon folders:


But still had no icon, then I put one in


Suddenly it worked. The pixmap is the key.

share|improve this answer
Just copying the icon.xpm to share/pixmaps with the following command did it for me: sudo mv /home/myusername/mydirectory/eclipse-juno/icon.xpm /usr/share/pixmaps/eclipse.xpm – Leco Jul 2 '12 at 19:17

Everything seemed correct in my case, but none of the suggested solutions worked for me, the icon wouldn't become visible in the launcher.

Then I simply removed the comment next to the Icon-line in the eclipse.desktop file and voila! it worked :)

So, my suggestion is, if there is a comment in your Icon-line like:

Icon=/opt/eclipse/icon.xpm # fill in path to logo

then remove the comment so it looks like:


I don't know why the comments work for the other lines (e.g. in the Exec-line it works). Maybe a bug.

hope it helps someone!

share|improve this answer
Hi Jane! Welcome to AskUbuntu. Just FYI, the answers are not sorted chronologically, so saying "none of the above suggestions" isn't really helpful. I upvoted your answer anyway because it looks useful. – Flimm Dec 4 '12 at 14:06
@Flimm: You are right, so I changed the statement to a more useful one ;) thanks for the hint! – Jane Dec 6 '12 at 8:08

Just copy the icon to


folder and it should work. Copying eclipse.xpm to ~/.icon folder worked for me.

share|improve this answer
I tried this. It did not work for me. Ubuntu 12.04.1 – Catskul Nov 26 '12 at 19:43

Simply, rename icon.xpm to icon.jpg inside the eclipse folder no matter where it is. Now try.

For more details go through the following note :-

  1. First, search alacarte aka Main Menu on Dash.

    You will see a list of applications and checked Items.

    Go to New Item, fill as follows -

            Name: Eclipse                         #of your choice
            Command: /home/leo/Downloads/eclipse         
            Comment:                             #as you wish   

Set path to the eclipse directory where you have it extracted.

Mine is inside Downloads.

  1. Now, you see an icon there itself. Click it and select icon.jpg inside your eclipse folder. (You need to browse through)

  2. Now search for eclipse and you will see that on Dash with the desired icon and you can pin it to Launcher or have it on Desktop.

Dash -> Main Menu -> New Item -> Fill up Name, Command and Comment and click on icon -> browse and select icon.jpg-> close window

Have fun!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.