How to have flatpak access host GSettings?
Ryan Gonzalez
rymg19 at gmail.com
Mon Oct 11 03:36:57 UTC 2021
The magic in dconf-editor is that it builds its own dconf w/ a custom patch that makes it respect DCONF_USER_DIR: https://github.com/flathub/ca.desrt.dconf-editor/blob/master/ca.desrt.dconf-editor.json#L20
-- Ryan
https://refi64.com/
On Oct 10, 2021, 6:32 PM -0500, Eric <nullchinchilla at pm.me>, wrote:
> Hi everyone,
>
> I'm trying to have my flatpak change GSettings of other apps *on the host*. From googling around I added to my flatpak manifest this:
>
> finish-args:
> - --filesystem=xdg-run/dconf
> - --filesystem=host:ro
> - --env=DCONF_USER_CONFIG_DIR=.config/dconf
>
> but it does not seem to work at all. Running "gsettings set" in the flatpak sandbox does not affect the host GSettings, only settings inside the flatpak.
>
> Is there something I am missing? Do I need to expose some other endpoint? Clearly what I am trying to do is possible, since "dconf-editor" has been packaged as a flatpak! But I don't see anything enlightening in the manifest of dconf-editor's flatpak.
>
> All the best,
> Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20211010/f6622460/attachment.htm>
More information about the Flatpak
mailing list