I get this warning since ~ 2 weeks doing a “zypper dup” about every 5 days.
(gvim:3524): Gtk-WARNING **: 07:40:48.503: Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid property name
I see this when I start things from the command line and apart from this warning nothing is wrong as far as I can see. Multiple applications trigger this warning, when I start gvim it prints out this message 4 times, when I start Firefox only two times.
So multiple gtk.css files but based on the line number I can say the problem is originating in /usr/share/themes/Breeze-Dark/gtk-3.0/gtk.css as that has “-gtk-icon-size: 16px” on line 1659 but I see in in 4 files:
I am running KDE and never played with GTK themes but looks like these application somehow use GTK themes. I found GTK on the ArchLinux wiki and based on that I tried:
I’ve always believed it’s a good idea to post about an issue and to detail the solution. This helps folks who experience the same (or similar) issue, to do a search, then work thru the solution. If fixed - great !
Been a software developer for 35+ years and always employ a policy to document all issues (with solution), even simple ones, so that future team members can benefit
My output after removing these two packages again:
S | Name | Type | Version | Arch | Repository
--+--------------------------+---------+------------+--------+-----------
i | gtk2-metatheme-adwaita | package | 3.28-1.21 | noarch | repo-oss
i | gtk2-metatheme-breeze | package | 5.27.4-2.1 | noarch | repo-oss
i | gtk3-metatheme-adwaita | package | 3.28-1.21 | noarch | repo-oss
i | metatheme-adwaita-common | package | 3.28-1.21 | noarch | repo-oss
i | metatheme-breeze-common | package | 5.27.4-2.1 | x86_64 | repo-oss
So I have only gtk2-metatheme-breeze extra. I did not lock out gtk4* (yet).
Thanks for the suggestion on creating local overrides for these themes but I thin locking them out is even better, I did at least not see any drawback yet.