Skip to content

Instantly share code, notes, and snippets.

@fmartins-andre
Created May 11, 2022 11:31
Show Gist options
  • Save fmartins-andre/6aaca02d4ad94f8bd1a9a0a75b5566be to your computer and use it in GitHub Desktop.
Save fmartins-andre/6aaca02d4ad94f8bd1a9a0a75b5566be to your computer and use it in GitHub Desktop.
chrome shows a black screen on screen sharing on wayland

How to enable wayland screen sharing on chrome browsers

Firefox (84+) supports this method by default, while on Chromium (73+) one needs to enable WebRTC PipeWire support by setting the corresponding (experimental) flag at the URL chrome://flags/#enable-webrtc-pipewire-capturer.

This requires xdg-desktop-portal and one of its backends to be installed. The available backends are:

  • xdg-desktop-portal-gnome for GNOME.
  • xdg-desktop-portal-kde for KDE.
  • xdg-desktop-portal-wlr for wlroots-based Wayland compositors (e.g. Sway, dwl)

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment