I was using Xfce on one of my linuxfromscratch systems and
grew to hate it because of this bug. I don't know an official
solution but I discovered that I had to add the full path to
the icon manually by editing the application's .desktop file
in /usr/share/applications. The icons should be found in subfolders
of /usr/share/icons or /usr/share/pixmaps. If you have the
"locate" program on your system you can use it to find the icon.
As an example
Code:
[Desktop Entry]
Name=Qt5 Designer
GenericName=Interface Designer
Comment=Design GUIs for Qt5 applications
Exec=/bin/designer
Icon=designer-qt5.png
MimeType=application/x-designer;
Terminal=false
Encoding=UTF-8
Type=Application
Categories=Qt;Development;
would become
Code:
[Desktop Entry]
Name=Qt5 Designer
GenericName=Interface Designer
Comment=Design GUIs for Qt5 applications
Exec=/bin/designer
Icon=/usr/share/pixmaps/designer-qt5.png
MimeType=application/x-designer;
Terminal=false
Encoding=UTF-8
Type=Application
Categories=Qt;Development;
I don't know if this is helpful and I know it's
tedious to do this for all the icons but it's
the only solution I found.