Flatpak apps do not respect GTK theme on Wayland (Kubuntu 23.10)

Bug #2042747 reported by Samuel R
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xdg-desktop-portal-kde (Ubuntu)
Fix Released
Medium
Unassigned
Mantic
Triaged
Medium
Unassigned
Noble
Fix Released
Medium
Unassigned

Bug Description

On Wayland, GTK apps doesn't respect the theme that is selected through gsettings. This didn't happen before on Kubuntu 23.04, so it seems to be a regression. Flatpak gtk apps need xdg-desktop-portal-gtk to access dconf settings, which it can't do, due to the portal not working properly. This also affects fonts and cursor themes, where they are also not respected. This issue doesn't seem to happen on X11. Version 1.15 of xdg-desktop-portal-gtk appears to fix the issue.

What I expected to happen:
The xdg-desktop-portal-gtk would work and gtk flatpak apps would respect the theme of my desktop on Wayland

What happened instead:
Gtk flatpak apps do not respect my desktop theme, cursor or fonts on wayland

Ubuntu Version: Kubuntu 23.10
Package Version: 1.14.1-1

Tags: mantic
Revision history for this message
Samuel R (gamertechuniverse) wrote :

It appears that adding a line to /usr/share/xdg-desktop-portal/kde-portals.conf fixes the issue. This should be added to the xdg-desktop-portal-kde package, which the file belongs to.

[preferred]
default=kde
+ org.freedesktop.impl.portal.Settings=kde;gtk;

Chris Guiver (guiverc)
tags: added: mantic
Revision history for this message
Jeff (jeff09) wrote :

Thank you for the fix, it's much appreciated after the 23.04 -> 23.10 update presented this quite heavy regression.

Just restarting affected programs didn't show a change, so ended up running:
```
systemctl --user restart xdg-desktop-portal
systemctl --user restart xdg-desktop-portal-gtk
```
Then after that the freshly opened programs behaved as expected again with decent looking fonts and the cursor behaving as expected depending on the context.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kubuntu-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
Rik Mills (rikmills) wrote :

Thanks for the report. We will try to get this fixed as soon as practical. However, for now our priorities are still any issues on X11.

As per our release notes "A Plasma Wayland session is available for testing, but is not supported"

https://wiki.ubuntu.com/ManticMinotaur/ReleaseNotes/Kubuntu#Plasma_Wayland_session

Changed in kubuntu-meta (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in kubuntu-meta (Ubuntu Mantic):
status: New → Triaged
importance: Undecided → Medium
status: Triaged → Fix Released
Rik Mills (rikmills)
no longer affects: kubuntu-meta (Ubuntu)
no longer affects: kubuntu-meta (Ubuntu Mantic)
no longer affects: kubuntu-meta (Ubuntu Noble)
Changed in xdg-desktop-portal-kde (Ubuntu Mantic):
importance: Undecided → Medium
Changed in xdg-desktop-portal-kde (Ubuntu Noble):
importance: Undecided → Medium
status: New → Fix Released
Changed in xdg-desktop-portal-kde (Ubuntu Mantic):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.