| 1 |
For Desktop Developers |
| 2 |
====================== |
| 3 |
|
| 4 |
The separation of the portal infrastructure into frontend and backend is a clean |
| 5 |
way to provide suitable user interfaces that fit into different desktop |
| 6 |
environments, while sharing the portal frontend. |
| 7 |
|
| 8 |
The portal backends are focused on providing user interfaces and accessing |
| 9 |
session- or host-specific APIs and resources. Details of interacting with the |
| 10 |
containment infrastructure such as checking access, registering files in the |
| 11 |
Document portal, etc., are handled by the portal frontend. |
| 12 |
|
| 13 |
Portal backends can be layered together. For example, in a GNOME session, most |
| 14 |
portal backend interfaces are implemented by the GNOME portal backend, but |
| 15 |
the :doc:`org.freedesktop.impl.portal.Access <doc-org.freedesktop.impl.portal.Access>` |
| 16 |
interface is implemented by GNOME Shell. |
| 17 |
|
| 18 |
|
| 19 |
.. toctree:: |
| 20 |
:hidden: |
| 21 |
|
| 22 |
writing-a-new-backend |
| 23 |
configuration-file |
| 24 |
system-integration |
| 25 |
|
| 26 |
.. cssclass:: tiled-toc |
| 27 |
|
| 28 |
* .. image:: _static/img/tiles/Backend-l.png |
| 29 |
:target: writing-a-new-backend.html |
| 30 |
:class: only-light |
| 31 |
.. image:: _static/img/tiles/Backend-d.png |
| 32 |
:target: writing-a-new-backend.html |
| 33 |
:class: only-dark |
| 34 |
|
| 35 |
:doc:`Writing a New Backend </writing-a-new-backend>` |
| 36 |
* .. image:: _static/img/tiles/Config-l.png |
| 37 |
:target: configuration-file.html |
| 38 |
:class: only-light |
| 39 |
.. image:: _static/img/tiles/Config-d.png |
| 40 |
:target: configuration-file.html |
| 41 |
:class: only-dark |
| 42 |
|
| 43 |
:doc:`Configuration File </configuration-file>` |
| 44 |
|
| 45 |
* .. image:: _static/img/tiles/System-integration-l.png |
| 46 |
:target: system-integration.html |
| 47 |
:class: only-light |
| 48 |
.. image:: _static/img/tiles/System-integration-d.png |
| 49 |
:target: system-integration.html |
| 50 |
:class: only-dark |
| 51 |
|
| 52 |
:doc:`System Integration </system-integration>` |
| 53 |
|
| 54 |
D-Bus Interfaces |
| 55 |
---------------- |
| 56 |
|
| 57 |
Portal backends must implement one or more backend D-Bus interfaces. The list of |
| 58 |
D-Bus interfaces can be found below: |
| 59 |
|
| 60 |
.. toctree:: |
| 61 |
:hidden: |
| 62 |
|
| 63 |
impl-dbus-interfaces |
| 64 |
|
| 65 |
.. cssclass:: tiled-toc |
| 66 |
|
| 67 |
* .. image:: _static/img/tiles/Dbus-l.png |
| 68 |
:target: impl-dbus-interfaces.html |
| 69 |
:class: only-light |
| 70 |
.. image:: _static/img/tiles/Dbus-d.png |
| 71 |
:target: impl-dbus-interfaces.html |
| 72 |
:class: only-dark |
| 73 |
|
| 74 |
:doc:`Backend D-BUS Interfaces </impl-dbus-interfaces>` |
| 75 |
|
| 76 |
Background Apps Monitor |
| 77 |
----------------------- |
| 78 |
|
| 79 |
In addition to managing the regular interfaces that sandboxed applications |
| 80 |
use to interface with the host system, XDG Desktop Portal also monitors |
| 81 |
running applications without an active window - if the portal backend |
| 82 |
provides an implementation of the Background portal. |
| 83 |
|
| 84 |
This API can be used by host system services to provide rich interfaces to |
| 85 |
manage background running applications. |
| 86 |
|
| 87 |
|
| 88 |
.. toctree:: |
| 89 |
:hidden: |
| 90 |
|
| 91 |
doc-org.freedesktop.background.Monitor.rst |
| 92 |
|
| 93 |
.. cssclass:: tiled-toc |
| 94 |
|
| 95 |
* .. image:: _static/img/tiles/Bmon-l.png |
| 96 |
:target: doc-org.freedesktop.background.Monitor.html |
| 97 |
:class: only-light |
| 98 |
.. image:: _static/img/tiles/Bmon-d.png |
| 99 |
:target: doc-org.freedesktop.background.Monitor.html |
| 100 |
:class: only-dark |
| 101 |
|
| 102 |
:doc:`Background Apps Monitor </doc-org.freedesktop.background.Monitor>` |