System Settings/GNOME/GTK Application Style no longer working in 15.2

Trying to change GTK2 Theme in KDE Settings has no effect.

It only writes one line to ~/.gtkrc-2. e.g.

gtk-theme-name="oxygen-gtk"

It wrote much more under Leap 15.1 like


# File created by KDE Gtk Config
# Configs for GTK2 programs 

include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"
include "/etc/gtk-2.0/gtkrc"
style "user-font" 
{
    font_name="Noto Sans Regular"
}
widget_class "*" style "user-font"
gtk-font-name="Noto Sans Regular 10"
gtk-theme-name="oxygen-gtk"
gtk-icon-theme-name="oxygen"
gtk-fallback-icon-theme="HighContrast"
gtk-cursor-theme-name="DMZ-White"
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-menu-images=1
gtk-button-images=1
gtk-primary-button-warps-slider=0

When I copy this file over to 15.2, the correct theme is showing up on GTK2 Applications.
The main thing missing in this example is the line

 include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"

Without this, the theme is not selected properly.

Thank you.

That’s possibly a KDE bug.

Are the Gtk configuration files located in ‘~/.config/’ being updated?


  ~/.config/gtk-2.0/gtkfilechooser.ini
  ~/.config/gtk-3.0/settings.ini
  ~/.config/gtkrc
  ~/.config/gtkrc-2.0

Possibly this KDE Bug is related to this issue: <417534 – Empty ~/.gtkrc-2.0 file is created every time I login;

~/.config/gtk-2.0/gtkfilechooser.ini > NO
~/.config/gtk-3.0/settings.ini > YES
~/.config/gtkrc > YES Empty
~/.config/gtkrc-2.0 > YES One Line

Not sure.

Thank you!

FYI https://bugzilla.suse.com/show_bug.cgi?id=1174350

Thanks for reporting the bug. But sorry about that WONTFIX conclusion. It’s just life in technology, that things change.

At least you seem to have found a way to deal with it.