Explaining settings portal in libportal?

I saw support for settings portal landed in libportal here.

Would anyone explain what does it mean for applications interacting with settings in flatpak?

What kind of application? If this is a libadwaita app then there is no reason to interact with the portal.

I currently have to use these finishing args in my libadwaita app:

--filesystem=xdg-run/dconf
--filesystem=~/.config/dconf:ro
--talk-name=ca.desrt.dconf
--env=DCONF_USER_CONFIG_DIR=.config/dconf
--env=GIO_EXTRA_MODULES=/app/lib/gio/modules/

and patch dconf to be able to change system-wide settings from flatpak.

I wanted to know if there is now a better approach for dong this?

The portal is only for checking the value of specific settings (the user prefered color scheme and HC at the moment).

Setting arbitrary system setting from inside the sandbox is the very definition of something that needs a sandbox hole.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.