Skip to content

Commit

Permalink
data: Document the session_handle type mismatch
Browse files Browse the repository at this point in the history
This was erroneously implemented as `s` but for backwards
compatibility cannot be changed as it would break existing clients.
Best we can do here is fix the documentation and tell people about it.

See eebb041 ("use correct type for the session object path")
and its revert in e452353.

Closes #1359
  • Loading branch information
whot committed Aug 6, 2024
1 parent 5941475 commit ffa25b7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion data/org.freedesktop.portal.GlobalShortcuts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@
The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
* ``session_handle`` (``o``)
* ``session_handle`` (``s``)
The session handle. An object path for the
org.freedesktop.portal.Session object representing the created
session.
.. note::
The ``session_handle`` is an object path that was erroneously implemented
as ``s``. For backwards compatibility it will remain this type.
-->
<method name="CreateSession">
<arg type="a{sv}" name="options" direction="in"/>
Expand Down
6 changes: 5 additions & 1 deletion data/org.freedesktop.portal.Inhibit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,16 @@
The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
* ``session_handle`` (``o``)
* ``session_handle`` (``s``)
The session handle. An object path for the
:ref:`org.freedesktop.portal.Session` object representing the created
session.
.. note::
The ``session_handle`` is an object path that was erroneously implemented
as ``s``. For backwards compatibility it will remain this type.
This method was added in version 2 of this interface.
-->
<method name="CreateMonitor">
Expand Down
6 changes: 5 additions & 1 deletion data/org.freedesktop.portal.RemoteDesktop.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@
The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
* ``session_handle`` (``o``)
* ``session_handle`` (``s``)
The session handle. An object path for the
:ref:`org.freedesktop.portal.Session` object representing the created
session.
.. note::
The ``session_handle`` is an object path that was erroneously implemented
as ``s``. For backwards compatibility it will remain this type.
-->
<method name="CreateSession">
<arg type="a{sv}" name="options" direction="in"/>
Expand Down
6 changes: 5 additions & 1 deletion data/org.freedesktop.portal.ScreenCast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@
The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
* ``session_handle`` (``o``)
* ``session_handle`` (``s``)
The session handle. An object path for the
:ref:`org.freedesktop.portal.Session` object representing the created
session.
.. note::
The ``session_handle`` is an object path that was erroneously implemented
as ``s``. For backwards compatibility it will remain this type.
-->
<method name="CreateSession">
<arg type="a{sv}" name="options" direction="in"/>
Expand Down

0 comments on commit ffa25b7

Please sign in to comment.