Files
allhaileris afb81b8278
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
init
2026-02-16 15:50:16 +03:00

13 lines
707 B
ReStructuredText

Sessions
========
Some portal requests are connected to each other and need to be used in
sequence. The pattern used in such cases is a :ref:`Session <org.freedesktop.portal.Session>`
object. Just like :ref:`Request <org.freedesktop.portal.Request>`\s, sessions are
represented by an object path, that is returned by the initial ``CreateSession``
call of the respective portal. Subsequent calls take the object path of the
session they operate on as an argument.
Sessions can be ended from the application side by calling the ``Close()`` method
on the session. They can also be closed from the service side, in which case the
``::Closed`` signal is emitted on the Session object to inform the application.