[Bug]: Flatpaks don't respect gtk theme, cursor size and text antializing doesn't work.
Checklist
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
- [X] If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
- [X] This issue is not a report of a security vulnerability (see here if you need to report a security issue).
Flatpak version
1.15.4
What Linux distribution are you using?
Fedora Linux
Linux distribution version
38
What architecture are you using?
x86_64
How to reproduce
1.I have given flatpaks permission to usr/share/themes and set environment var to GTK_THEME=Adwaita-dark, however it doesn't work/ 2.The cursor and text antialising glich happend after a chrome update
Expected Behavior
I expect adwaita dark theme and cursor size and antialising to be correct
Actual Behavior
Flatpaks use wrong gkt theme, cursor size is wrong, and text is pixelated.
Additional Information
sway
Per the documentation, access to the /usr folder is blacklisted.
Even if manually specified, exposing that folder to a Flatpak application is not intended to be possible.
Per the documentation, access to the /usr folder is blacklisted.
Even if manually specified, exposing that folder to a Flatpak application is not intended to be possible.
Moving the themes to the correct userdir & then giving permission to the app fixes the cursor theme problem, but cursor size reverting the default happens to me on and off since I started using flatpaks a year ago, sigh.
Don't set GTK_THEME. Libadwaita apps cannot be themed in the conventional way, but they will respect dark mode via the settings portal. You need to install a portal backend that supports the color-scheme setting, e.g. xdg-desktop-portal-gtk, and then enable dark mode in the manner appropriate for that backend (for x-d-p-gtk, it would be the GNOME setthing).
To quote myself from another issue:
The non-antialiased text issue is the same as #2861, and that has been fixed in GTK. [...] Other desktop integration issues like cursor theme and window controls can currently only be resolved by installing xdg-desktop-portal-gtk and configuring the relevant GNOME settings with
gsettings. There is no standardization between toolkits on Wayland for most settings like that.