The application (BricsCAD) originally had a very low res 16 x 16 icon. I created a new 128 x 128 bitmap and set it as the app icon in KDE Menu Editor.
The new icon is used in the app launcher, the quick launch widget, in Dolphin and, when starting the app, for a brief moment in the task manager button. However, as soon as the app window appear, the task manager button reverts to the low res icon (WTH???).
Not sure if deleting ~/.cache/icon-cache.kcache will help as BricsCAD uses GTK witgets IINM.
Sounds like the application explictly sets that icon as window icon…
Probably not much you can do about it then.
Not sure if deleting ~/.cache/icon-cache.kcache will help as BricsCAD uses GTK witgets IINM.
But the taskmanager uses KDE’s icon loader (if the application only specifies an icon file name as window icon), so it might still help.
Probably unlikely though.
Where did you save your customized icon?
I have bricscad here and my icon is customized also. The icon is save in my /home/icons
and doesn’t break in KDE. I am still using bricscad version 15.
I nearly forgot, maybe this could help:
The taskmanager reads custom application->icon mappings (and certain other “settings”) from a file called /etc/xdg/taskmanagerrulesrc.
Maybe it could be modified to use the wanted icon, but I never tried that.
(~/.config/taskmanagerrulesrc should be respected for user-specific overrides I think)
I might also help to put the icon in some standard place like ~/.local/share/pixmaps/ or ~/.icons/.
I took a look at /etc/xdg/taskmanagerrulesrc, there is no explicit reference to icons, I suppose I’d have to understand how it works and add a definition.
Also, there is no ~/.config/taskmanagerrulesrc here.
I created both ~/.local/share/pixmaps/ and ~/.icons/ and placed the 128x128 png in them, but after session restart I still get the low res 16x16 icon.
I’ll wait for a reply from Bricsys, they usually reply fast, and see if they have a solution. If not, well, after all it’s only a cosmetic issue, I think I can live with it.
Thank you for your suggestions and insights, I really appreciate them.
It’s the “[Mapping]” part, that specifies what icons (or menu entries?) to associate certain applications with. Although the “[Settings]” part comes into play as well.
I don’t know how it works exactly though.
Also, there is no ~/.config/taskmanagerrulesrc here.
Of course not, you’d have to create it manually and it should override the global one for the user then.
But I’m not sure it really does, so maybe better modify the global one for testing/experimenting.
I created both ~/.local/share/pixmaps/ and ~/.icons/ and placed the 128x128 png in them, but after session restart I still get the low res 16x16 icon.
Maybe it would work if you’d rename it to bricscad.png (or whatever the original icon is named), without the _128 part?