I’m trying to use PRC property ‘icon-filename’ or WindowProperties.setIconFilename() to set the icon of my application window, but does not seem to work at all on Linux/X11, though it works fine on MacOS.
Grepping the Panda source code, I can’t find any reference to icon configuration code in the X11 display code; on the other hand, osx and win display codes are using the icon_filename property.
I can help fixing it, but my knowledge of PNMImage is rather limited so don’t know yet how to read the icon file and extract the icon bitmap with the right format.
I have made a PR to add the feature, it seems to work fine on my setup but if people with other WM could test if it works for them too it would be great
For Ubuntu Unity it won’t work however as, according to several source, it uses a non-standard way to configure the application icon…
@Yonnji, Eventually I took your approach to send the icon to the WM, the pixmap in wm_hints has too many limitations.