emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
590 stars 57 forks source link

Screensharing disabled after restarting pipewire service #242

Closed J0nnyMak0 closed 1 year ago

J0nnyMak0 commented 1 year ago

I ran into this issue after having to restart pipewire service. To reproduce:

share screen (ok) stop sharing (ok) restart pipewire (systemctl --user restart pipewire pipewire-pulse wireplumber) share screen (unable to share screen, only black screen visible to participants)

If I restart pipewire without sharing screen before the restart, then I'm able to share screen even though pipewire has been restarted. Log attached for the procedure outlined above.

sway.log

J0nnyMak0 commented 1 year ago

Just wanted to add that when xdg-desktop-portal-wlr gets into this state of being unable to share screen, it consumes 100% cpu. When in this state, issuing systemctl --user restart xdg-desktop-portal-wlr.service brings back the sharing window and I'm able to resume sharing without any further problems...