Bug 509515

Summary: GTK theme not applied to GSettings in fresh installs
Product: [Plasma] Breeze Reporter: Fabian Vogt <fabian>
Component: gtk themeAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: 4wy78uwh, agrinev98, nate, ngompa13, uhhadd
Priority: NOR    
Version First Reported In: 6.4.80   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.4.6
Sentry Crash Report:

Description Fabian Vogt 2025-09-15 12:12:15 UTC
On fresh installations, gsettings get org.gnome.desktop.interface gtk-theme returns 'Adwaita'.
While on X11, GTK applications still look at settings.ini or xsettings, on Wayland this is not the case. The result is  that applications like Firefox use the wrong theme in a Plasma Wayland sesson.

Also seen by openQA: https://openqa.opensuse.org/tests/5309192#step/firefox/29 (X11) vs. https://openqa.opensuse.org/tests/5308748#step/firefox/29 (Wayland)
Comment 1 Bug Janitor Service 2025-09-15 12:26:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/135
Comment 2 Fabian Vogt 2025-09-15 12:50:45 UTC
Git commit 6c00c6cfaac019581683f875572eb376757ddf39 by Fabian Vogt.
Committed on 15/09/2025 at 12:14.
Pushed by fvogt into branch 'master'.

kconf_update: Call g_settings_sync() explicitly

The code from the kded module uses a compression timer to sync only every
100ms, but in the kconf_update executable there is no event loop so this
will never happen. Do it explicitly.

M  +3    -0    kconf_update/gtktheme.cpp

https://invent.kde.org/plasma/kde-gtk-config/-/commit/6c00c6cfaac019581683f875572eb376757ddf39
Comment 3 Fabian Vogt 2025-09-15 12:51:23 UTC
Git commit 8e2969ef4e64aea62c9edb62661d6fad7947dd23 by Fabian Vogt.
Committed on 15/09/2025 at 12:51.
Pushed by fvogt into branch 'Plasma/6.4'.

kconf_update: Call g_settings_sync() explicitly

The code from the kded module uses a compression timer to sync only every
100ms, but in the kconf_update executable there is no event loop so this
will never happen. Do it explicitly.


(cherry picked from commit 6c00c6cfaac019581683f875572eb376757ddf39)

Co-authored-by: Fabian Vogt <fabian@ritter-vogt.de>

M  +3    -0    kconf_update/gtktheme.cpp

https://invent.kde.org/plasma/kde-gtk-config/-/commit/8e2969ef4e64aea62c9edb62661d6fad7947dd23
Comment 4 Nate Graham 2025-09-19 02:37:47 UTC
*** Bug 446572 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2025-09-19 02:37:50 UTC
*** Bug 503396 has been marked as a duplicate of this bug. ***