While it is running, screeensharing on Chromium also works. If you close the script abruptly, the screensharing keeps working (as I am assuming, the pipewire sources are not destroyed). If you however, close the script gracefully, the screencast freezes (I am assuming the script is closing the sources), and I get:
xdg-desktop-portal-wlr[2179]: 2023/06/06 13:36:44 [ERROR] - pipewire_loop_iterate failed: Unknown error -1
xdg-desktop-portal-wlr[2179]: 2023/06/06 13:36:44 [ERROR] - pipewire_loop_iterate failed: Unknown error -1
xdg-desktop-portal-wlr[2179]: 2023/06/06 13:36:44 [ERROR] - pipewire_loop_iterate failed: Unknown error -1
wireplumber[1616]: <WpPortalPermissionStorePlugin:0x558cb7a37a30> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
wireplumber[1616]: <WpPortalPermissionStorePlugin:0x558cb7a37a30> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
wireplumber[1616]: <WpPortalPermissionStorePlugin:0x558cb7a37a30> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
wireplumber[1616]: <WpPortalPermissionStorePlugin:0x558cb7a37a30> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
I am using Ubuntu (server) with:
I used to have screensharing working until it broke after running
apt upgrade
a month ago or so.Sharing a window on Chromium currently does not work, it fails with:
I tried upgrading wireplumber, pipewire and xdg-desktop-portal-wlr to more recent versions directly from source but no luck. Finally I found:
https://gitlab.gnome.org/-/snippets/39
Which, after installing gstreamer:
Workaround
Use the script https://gitlab.gnome.org/-/snippets/39 before sharing the screen on Chromium, then terminate the script abruptly.