Support for ScreenCast portal within xdg_desktop_portal service
Description
The ScreenCast portal allows sandboxed application to prompt the user to do screen sharing.
Adding support for this portal would give users the ability to allow jailed applications that rely the xdg_desktop_portal service to do screen sharing. This can be useful for apps like Discord and OBS.
Hello @effectsbot
Support for this portal can definitely be added: https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.ScreenCast.html
Do you know if simply giving access to it is enough? Does it need pipewire as well?
It needs pipewire socket AFAIK.
Giving access to this portal should be enough. I did some digging as well and it appears that the Discord Flatpak allows access to Pipewire for SteamDeck specific support, so it shouldn't be necesary for the desktop.
https://github.com/flathub/com.discordapp.Discord/commit/3f36044bd33f0995ff45dc4e1a87f0f140155ec2