Provide a gnome-portals.conf for xdg-desktop-portal >= 1.17.0
Since xdg-desktop-portal 1.17.0, the recommendation is for each desktop environment implementation XDG_CURRENT_DESKTOP=foo
to provide a /etc/xdg-desktop-portal/foo-portals.conf
specifying its preferred portal implementations. This ensures that GNOME-specific implementations of interfaces like screencasting are used if and only if we're running GNOME.
This is intentionally very similar to mimeapps.list
(#98).
For GNOME I think this would look something like (untested):
# gnome-portals.conf
[preferred]
default=gnome;gtk;
org.freedesktop.impl.portal.Access=gnome-shell;gtk;
org.freedesktop.impl.portal.Secret=gnome-keyring;
If gnome-session is responsible for any other XDG_CURRENT_DESKTOP
values (gnome-flashback
? gnome-classic
?) then those might want their own portals.conf files too, which would take precedence over the one for the full GNOME (Shell) session; or GNOME/gnome-flashback> and GNOME/gnome-shell-extensions> might be the better place for those.