How to set an icon for Eclipse?
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?
Solution 1:
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:
cp /yourEclipseFolder/icon.xpm /usr/share/pixmaps/eclipse.xpm
Solution 2:
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.
Solution 3:
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]
Type=Application
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=/usr/lib/eclipse/eclipse
Icon=path_to/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true`
For example, mine is /usr/lib/eclipse/icon.xpm
.
Solution 4:
I copied
/opt/eclipse/plugins/org.eclipse.sdk_3.7.1.v201109091335/eclipse48.png
to
/usr/share/pixmap/eclipse.png
(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
Solution 5:
I just had this problem with another program, I placed the .png files in the icon folders:
/usr/share/icons/hicolor/16x16/apps/eclipse.png
/usr/share/icons/hicolor/32x32/apps/eclipse.png
/usr/share/icons/hicolor/48x48/apps/eclipse.png
But still had no icon, then I put one in
/usr/share/pixmaps/eclipse.png
Suddenly it worked. The pixmap is the key.