emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
591 stars 56 forks source link

Implement screencast session restore #170

Open GeorgesStavracas opened 2 years ago

GeorgesStavracas commented 2 years ago

Recently xdg-desktop-portal gained the screencast session restore feature, but it requires frontends to implement that. So xdg-desktop-portal-wlr would need 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.

columbarius commented 2 years ago

Thanks for the info. Interested to implement it but it is blocked by #169.

Note: If screencast without user interaction is required this can be achieved by using the following options.

chooser_type=none
output_name=<Name of output>