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?
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?
I added the icon to
/usr/share/pixmaps
, but the name of the icon was noteclipse.xpm
instead it wasicon.xpm
In the terminal:
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.
Go to terminal and type
sudo leafpad /usr/share/applications/eclipse.desktop
, then edit the file to replacepath_to/icon.xpm
in the following example with the file path to your icon:For example, mine is
/usr/lib/eclipse/icon.xpm
.I copied
to
(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 appearedJust copy the icon to
folder and it should work. Copying
eclipse.xpm
to~/.icon
folder worked for me.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.
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:
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!
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 :-
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 -
Set path to the eclipse directory where you have it extracted.
Mine is inside Downloads.
Now, you see an icon there itself. Click it and select icon.jpg inside your eclipse folder. (You need to browse through)
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!