Better generic profile for running GTK windows on KDE normally.
Description
I don't know about any problems that may be existing in other DEs but for KDE there's a need to pass some directories to make GTK apps respect KDE settings and theme. The following files/dirs must be passed to sandbox for the needed result:
~/.config/gtkrc
~/.config/gtkrc-2.0
~/.config/gtk-3.0
~/.config/gtk-4.0
~/.config/dconf
~/.config/glib-2.0
~/.themes
After that the applications look as if there was no sandboxing. Again, I don't know if it works OK on other DEs but this is what I always add to any GTK application for KDE and I think that it should be included by default
Hello @SergSel2006
I agree that those files can be passed to sandbox except for the dconf as it contains way more information than just toolkit settings. Not sure how flatpak propagates the toolkit settings but it sets the dconf to use a keyfile and does not pass the original file.
Not sure how flatpak propagates the toolkit settings but it sets the dconf to use a keyfile and does not pass the original file.
https://docs.flatpak.org/en/latest/desktop-integration.html?highlight=theme#theming
- portals (surprise 😃 ) and Extensions instead of host files/directories (surprise 😃 )
So basically instead of dconf you may want to implement portals, am I understanding right?
Two steps are required to change the theme of a program:
- tell the program which theme it should use (dconf, Settings portal, environment variable, ...)
- make sure the program can access the actual theme data