eclipse-platform / eclipse-platform/eclipse.platform

Replace icon.xpm with icon.png, please

Open
#1,756 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
165
Forks
174
Avg merge
2d 8h
Merged PRs (30d)
22

Description

On a freshly installed Fedora Linux 41 with Gnome running as the UI, I have created a .desktop file, which references the icon.xpm, like so:

```plain
Icon=/home/jwi/opt/eclipse/icon.xpm
```

Now, I can launch Eclipse from my desktop, as expected. However, there is one problem: The icon is not showing.
This appears to be intentional (no idea, whether it is the Gnome teams intention, or the Fedora teams), so I assume, that this will
be the same in future releases of Fedora. It is also quite possible, that other distributions will adopt the same behaviour. (As you know,
Fedora is the leading edge in terms of Gnome.

I have found two different workarounds:

1. According to [Bug 2277502](https://bugzilla.redhat.com/show_bug.cgi?id=2277502), the issue can be fixed by installing an additional RPM package *gdk-pixbuf2-modules-extra*:

```bash
sudo dnf -y install gdk-pixbuf2-modules-extra
```

2.) A more obvious solution, and one, that the Eclipse platform team could help with: Convert the xpm file to png. Indeed, if I do that, and change my .desktop file to use the converted png file, then everything works fine.

In other words: It might be a good idea, to add a new file icon.png to the Eclipse distribution. No idea, whether this could replace icon.xpm, or whether the latter is still required elsewhere.

Thanks,

Jochen

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.