Debian Codegraph @

doc/configuration-file.rst

raw
1 Configuration File
2 ==================
3
4 Portal backends are selected and can be configured by using one or more
5 configuration files.
6
7 Desktop systems may have multiple desktop environments and portal backends
8 installed in parallel, and automatically picking portal backends in this
9 situation has proven to be a challenge.
10
11 For this reason, XDG Desktop Portal uses a config-based matching system.
12 Usually, the configuration files are provided by the desktop environments
13 themselves, so that e.g. the GNOME-specific portal backends are picked in
14 GNOME sessions. No end user intervention is necessary in this case.
15
16 Here's an example of a config file distributed by GNOME:
17
18 .. code-block::
19
20 [preferred]
21 default=gnome;gtk;
22 org.freedesktop.impl.portal.Access=gnome-shell;gtk;
23 org.freedesktop.impl.portal.Secret=gnome-keyring;
24
25 This file specifies that, by default, the ``gnome`` and ``gtk`` portal backends
26 must be used. However, specifically for :doc:`org.freedesktop.impl.portal.Access
27 <doc-org.freedesktop.impl.portal.Access>`, the ``gnome-shell`` and ``gtk``
28 portal backends must be used; and for :doc:`org.freedesktop.impl.portal.Secret
29 <doc-org.freedesktop.impl.portal.Secret>`, the ``gnome-keyring`` portal
30 backend must be used.
31
32 You can read more about the config file syntax, install locations, and more, in
33 the portals.conf man page:
34
35 .. toctree::
36 :maxdepth: 1
37
38 portals.conf