dconf overrides are not read by flatpaks on wayland sessions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flatpak (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
xdg-desktop-portal (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
"dconf supports distros installing override files into the system, then when queried dconf will look at user setting, then fallback to distro setting, then fallback to default setting. In a sandbox we can ask dconf for the user setting but we don't have disk access to the override files"
So what this means is that on wayland flatpaks can't read the default overrides from the session (eg Ubuntu choosing Ambiance and Minimise, Maximise, Close etc) as it doesn't have permission to read the system files only user ones. (this doesn't affect X11 sessions as gtk reads from xsettings instead).
This will be solved when the settings portal [0] is used in xdg-desktop-portal, as that runs on the host outside of the sandbox it is able to read the necessary files.
# Workaround
Install gnome-tweaks, change your theme to something else and then back to Ambiance. Also for the window controls change one of them from true to false to true. This will then write user settings to dconf which the flatpak's can then read.
0 - https:/
=== Original Description ===
System: Ubuntu 18.04.1
Flatpak version: 1.0.6-flatpak1~
Description: Flatpaks using GTK3 default to the Adwaita theme in a Wayland Gnome session. In Xorg sesions they are themed correctly. The attached screenshots demonstrate the same version of Gnome Builder running in Communitheme-
summary: |
- Themes work in Xorg but not Wayland sessions + Themes work in Xorg but not Wayland sessions - when using Communitheme + snap sessions |
Gnome Builder (latest) in Communitheme- Wayland session