How to configure gsettings keys of flatpaks?

Florian Müllner fmuellner at gnome.org
Sun Oct 18 14:12:16 UTC 2020



On Sun, Oct 18, 2020 at 15:38, Reto Kaiser <reto at retoonline.com> wrote:
> Flatpak apps now can store dconf settings in a "keyfile", for example 
> the gedit flatpak uses this file:
> -----
> ~/.var/app/org.gnome.gedit/config/glib-2.0/settings/keyfile
> -----
> 
> What is the best way to configure these settings, without overwriting 
> the whole file?
> 
> My approach now is to run "gsettings" in the flatpak container. But 
> that only works once the flatpak is installed.
> -----
> flatpak run --command=gsettings org.gnome.gedit set 
> org.gnome.gedit.preferences.editor display-line-numbers false
> -----
> 
> Is there maybe a way to modify the keyfile using "gsettings" from the 
> host?


Probably not. Something like "G_SETTINGS_BACKEND=keyfile 
XDG_CONFIG_HOME=~/.var/app/org.gnome.gedit/config" will point the tool 
to the correct keyfile, but I don't see an easy way around the missing 
schema (as that's only available inside the flatpak).

Cheers,
Florian




More information about the Flatpak mailing list