flatpak / libportal

libportal - Flatpak portal library
https://libportal.org
GNU Lesser General Public License v3.0
82 stars 40 forks source link

libportal: Add activation-token to notification-action-invoked #88

Open 3v1n0 opened 2 years ago

3v1n0 commented 2 years ago

Since some time FDO Notifications introduced the ActivationToken signal to ensure that clients will receive an X11-startup notification ID or a wayland xdg-activation token in order to support stealing-focus prevention protocols.

However this isn't supported by xdg-desktop-portal's. So fill the gap by adding a further activation token.

While it could be added by as an optional parameter, it's just better to make it explicit.

At the same time, let's bump the library version as the signal signature changed (while adding a new one with an extra parameter looked overkill.

Required by https://github.com/flatpak/xdg-desktop-portal/pull/791

3v1n0 commented 2 years ago

@GeorgesStavracas have some time for this (and maybe the related portal one)? :smile:

jsparber commented 1 month ago

The user can now obtain an activation token since notification v2 is now merged. https://github.com/flatpak/xdg-desktop-portal/pull/1298 I think this can be closed.