How to set an icon for Eclipse?
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
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 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
.