Recently xdg-desktop-portal gained the screencast session restore feature, but it requires frontends to implement that. So xdg-desktop-portal-kde needs to send `restore_data` back to xdg-desktop-portal when a permission mode is passed. There is a reference implementation in xdg-desktop-portal-gnome that is merged already: https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/14 You can use libportal's mainline branch to test this feature, since it's landed support for it too.
Thanks for letting us know!
OBS has implemented support for this feature as well, looks like it's already there since version 27.2.0: https://github.com/obsproject/obs-studio/commit/26f1bfd05f2782d0e99a4a044b90bbb6b62b329a
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/79
Git commit 1e42ef66aae9d3338c18a207011a60fb65c4402f by Aleix Pol. Committed on 02/04/2022 at 00:09. Pushed by apol into branch 'master'. screencast: Allow restoring streams when possible M +7 -0 src/ScreenChooserDialog.qml M +8 -2 src/outputsmodel.cpp M +10 -2 src/outputsmodel.h M +136 -11 src/screencast.cpp M +8 -1 src/screencast.h M +5 -0 src/screenchooserdialog.cpp M +1 -0 src/screenchooserdialog.h M +2 -0 src/session.cpp M +11 -0 src/session.h https://invent.kde.org/plasma/xdg-desktop-portal-kde/commit/1e42ef66aae9d3338c18a207011a60fb65c4402f