bubblejail icon indicating copy to clipboard operation
bubblejail copied to clipboard

Better generic profile for running GTK windows on KDE normally.

Open SergSel2006 opened this issue 10 months ago • 4 comments

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

SergSel2006 avatar Mar 07 '25 15:03 SergSel2006

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.

igo95862 avatar Mar 07 '25 16:03 igo95862

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 😃 )

rusty-snake avatar Mar 07 '25 17:03 rusty-snake

So basically instead of dconf you may want to implement portals, am I understanding right?

SergSel2006 avatar Mar 07 '25 17:03 SergSel2006

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

rusty-snake avatar Mar 07 '25 17:03 rusty-snake