Skip to content

Commit fc2483f

Browse files
committed
notification: Define how apps can get an activation-token via ActionInvoked
We need to hand out the activation token for XDG Activation in some way. I think it's pretty nice that we can just add the same platform data as used for DBus Activation to the ActionInvoked signal.
1 parent fbd52f2 commit fc2483f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

data/org.freedesktop.impl.portal.Notification.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,14 @@
128128
@app_id: App id of the application
129129
@id: the application-provided ID for the notification
130130
@action: the name of the action
131-
@parameter: array which will contain the target parameter for the action, if one was specified
131+
@parameter: an array containing additional information
132132
133133
Send to the application when a non-exported action is
134134
activated.
135+
136+
The @parameter contains the target parameter for the action, if one was specified,
137+
and the `platform-data` as vardict containing an ``activation-token`` (``s``) for `XDG Activation
138+
<https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/xdg-activation/xdg-activation-v1.xml>`_.
135139
-->
136140
<signal name="ActionInvoked">
137141
<arg type="s" name="app_id"/>

data/org.freedesktop.portal.Notification.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s08.html>`_
4141
using ``ActivateAction()`` method in the
4242
``org.freedesktop.Application`` interface. An `activation-token` for
43-
` XDG Activation
43+
`XDG Activation
4444
<https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/xdg-activation/xdg-activation-v1.xml>`_
4545
and an application-defined `target` is passed when activating the action.
4646
Other
@@ -428,10 +428,14 @@
428428
ActionInvoked:
429429
@id: the application-provided ID for the notification
430430
@action: the name of the action
431-
@parameter: array which will contain the target parameter for the action, if one was specified
431+
@parameter: an array containing additional information
432432
433433
Send to the application when a non-exported action is
434434
activated.
435+
436+
The @parameter contains the target parameter for the action, if one was specified,
437+
and the `platform-data` as vardict containing an ``activation-token`` (``s``) for `XDG Activation
438+
<https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/xdg-activation/xdg-activation-v1.xml>`_.
435439
-->
436440
<signal name="ActionInvoked">
437441
<arg type="s" name="id"/>

0 commit comments

Comments
 (0)