Missing launcher icon on desktop linux (RPM)

WHAT IS THE BUG

The launcher icon for anytype is missing on linux. (RPM installation)

image

HOW TO REPRODUCE IT

  1. Install the latest anytype RPM package.
  2. Open the application launcher

THE EXPECTED BEHAVIOR

The actual anytype icon shows up.

SYSTEM INFORMATIONS

  • OS:
    Fedora linux 37 workstation
  • Device:
    x64 desktop pc
  • Anytype Version:
    0.29.1

ADDITIONAL CONTEXT

I wasn’t able to find an existing bug report for this. All I was able to find was this same problem but for the appimage version. And since the icon handling there is quite different I have created this bug report.

I have also been able to locate the core of the issue, and fix it on my system.
The anytype rpm installs the icon into /usr/share/icons/hicolor/0x0/apps/anytype2.png, this location is apparently not used by fedora or gnome (not sure).
So I was able to fix it by copying the anytype2.png to /usr/share/icons/hicolor/scalable/apps/anytype2.png, and then running sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/ to refresh the cache. After this the icon properly shows up.

So a possible solution here is to install the icon into both locations.

After fix:
image