It isn’t clear to me what icon you are talking about, Icon and MiniIcon are different. But from looking at what you have, I would take advantage of ImagePath instead of defining the path with a variable like $[fvwm_icon].
But can you clarify where you want to see this icon. But if it works for other apps but not this one, double check the path and icon is actually a .png and not some other image format.
I tried to use Icon instead of MiniIcon, the same result. I verified icon, it is normal png. To solve the problem I changed the icon. Without EWMHMiniIconOverride the icon appears, but it is the native icon of geany, not new one. Below is snapshot of the problem. The geany is above Zotero without icon.
Okay, yea you want the MiniIcon and you do need the EWMHMiniIconOverride to use a custom one. How about you use the same icon file name on one that you know works (just to test). To me I still think it is something to do with the image file/path. You can look at the error logs see if there is any errors with the image you are trying to use.
Thanks, I know how to change size. All of my icons have the same size 32x32. I wrote above that I made experiment and changed icon geany for for firefox Style geany EWMHMiniIconOverride, MiniIcon $[fvwm_icon]/firefox.png which is showed with firefox (see above) but with same result - it disappears.
ImagePath is a fvwm command that is used to define the path fvwm is using to find the icons and miniicons pictures, and all image paths should be related to its definition. I have no idea/don’t remember how fvwm will interpret the paths if ImagePath is not set into your config. Look at man fvwm for more.
That said, some software can be buggy with the EWMH hints. If you try everything and nothing works with geany when it works with other software, you should maybe look for help with the geany community or developers.
Yes, you are right, this is problem with geany, only. I defined in the same way icon for 15 programs and the problem takes place with geany only. I’ve got close problem with skype. I defined miniicons style by he following
The skype did not change icon in the way as I wrote. But in the directory mini-icons I changed icon 32x32-skypeforlinux.png and the new icon appears in the tray. But this is not the case for geany. Close problem was with blueman icon. The icon was dark and I used background dark and the icon was invisible. It was impossible to change icon by defining Style. I solved this problem by changing the style of blueman in the setting. I use dconf-editor and found that the some configuration items of blueman there are in the setting. The style of icon is defined there. But there is no an item of configuration in Setting.
There is another option that does not require tinkering with your fvwm config in order to get this problematic application to work: Override this icon on the theme, but locally (meaning in ~/.local/share/icons/)
First locate (and/or identify) what icon theme you are using.
Check that your default icon theme does provide an icon for geany if not jump to 5.
Create a brezee folder in ~/.local/share/icons/
Copy the folder structure from the original theme, including sub folders (check /usr/share/icons/THEME for that)
Copy the icon you desire in the standard icon sizes: 16x16, 22x22, 32x32, 48x48, 64x64 and so on…
Because there is always a fallback icon theme (HiColor) is always a good idea to rewrite this too, just in case. Check the folder structure for the HiColor Theme in /usr/share/icons and recreate it in ~/.local/share/icons/hicolor. Then place your icon there in the standard icon sizes (see 4).
This will force geany to use the icon you want not the default one and, unless no mini-icon is being shown at all, this should fix your issue.
However you must keep in mind that: Most icon themes now use svg files instead pngs, if so… you may need a svg instead of a png for this to work. Also notice that icon themes can have slightly different structures.