Fix global shortcuts
The protocol changed in https://github.com/flatpak/xdg-desktop-portal/commit/8cb5b6d997108443ecc26152c95bbca8c8c58fc3 to accept shortcuts in BindShortcuts
instead of CreateSession
. This code implemented the old version of the protocol, and only wrote shortcuts from CreateSession
.
xdg-desktop-portal
no longer forwards shortcuts
from CreateSession
so before this change, no shortcuts could be created, even by clients attempting to use the old protocol.
This also necessitates functionality to load the existing shortcuts in CreateSession
such that ListShortcuts
works immediately.
This was also reported in https://bugs.kde.org/show_bug.cgi?id=474741 .