Wayland screen-sharing

Screensharing on Wayland seems to rely on Pipewire and xdg-desktop-portal.

xdg-desktop-portal requires a backend to work.

Sway/wlroots

For sway/wlroots, this is xdg-desktop-portal-wlr.

Both components should automatically get launched as needed. If not, try:

/usr/lib/xdg-desktop-portal -r
/usr/lib/xdg-desktop-portal-wlr

Make sure $XDG_CURRENT_DESKTOP=sway or nothing will happen.

Gnome

Gnome-shell uses xdg-desktop-portal-gnome as its backend. On modern distros this should work out of the box.

Application support

  • Chrome currently requires chrome://flags/#enable-webrtc-pipewire-capturer to be enabled.
  • Electron applications currently need to be launched with --enable-features=WebRTCPipeWireCapturer.