Re: Unable to screen share with SwayWM using Wayland and Pipewire
Reply #6 –
My issue was that xdg-desktop-portal was not starting automatically.
ps aux | grep xdg-desktop-portal
showed only the gtk backend running.
Here is my ~/.config/xdg-desktop-portals/sway-portals.conf
[preferred]
default=gtk
org.freedesktop.impl.portal.ScreenCast=wlr
org.freedesktop.impl.portal.Screenshot=wlr
org.freedesktop.impl.portal.Inhibit=none
which should have started wlr backend.. maybe I am missing something here.
Fix:
Manually start the wlr backend from sway config and reload xdg-desktop-portal by adding it to ~/.config/sway/config
exec /usr/lib/xdg-desktop-portal-wlr
exec /usr/lib/xdg-desktop-portal -r