With the move between X11 and Wayland still ongoing, and likely won't finish for years, problems keep coming up like screen sharing but XwaylandVideoBridge may help solve this.
This new tool written by Aleix Pol and David Edmundson is designed to allow much easier sharing of screens and windows between X11 and Wayland, which should help to ease the transition from X11 to Wayland. The problem is that currently in the likes of Discord, MS Teams, Slack, Zoom and others that you run through Xwayland, you may end up with a black screen and no windows listed — this should solve it.
Picture credit: David Edmundson
Hopefully in future things like this won't be needed, as everything moves over to Wayland. Still, it's good to have tools available for legacy apps that won't get updated and great for the next few transition years.
As the developers on it say it should work "on any desktop that supports the Xdg desktop portals and pipewire streaming and have a working system tray".
I hope it's good and gets added to plasma6 by default, as considered in the blog post.
Last edited by JordanPlayz158 on 23 March 2023 at 5:16 pm UTC
Quoting: JordanPlayz158I would recommend WebCord for the discord specific example but XWayland Video Bridge is better as you don't need independent forks of each app but if there is a FOSS fork and/or implementation of an app that has support for native Wayland, I'd say that is the better choice.
Webcord doesn't support game activities, nor does it support discord mods like better discord.
Used to use both the native client and web cord because of this.
Discord should just really update their electron version and use pipewire sharing 😔
QuoteThe problem is that currently in the likes of Discord, MS Teams, Slack, Zoom and others that you run through Xwayland, you may end up with a black screen and no windows listed — this should solve it.
works fine here on latest gnome and teams pwa.
I don't understand which case this will help that xdg-desktop-portal-wlr doesn't handle.
Last edited by minidou on 23 March 2023 at 5:40 pm UTC
Quoting: LinasSomething like that should really be built into Wayland.
I'm not sure if you mean screensharing or that video bridge? If the former, well, there's pipewire, just not supported by Discord (the "app", it works in browsers).
If you mean the bridge itself, it's difficult while still honoring Wayland's security guarantees, and it would be more a part of XWayland than wayland.
Should it be in XWayland? Maybe, but this modular solution is good as well.
Having said that, I suppose the bulk of my sharing is from Chrome, running O365, so I guess I could experiment a little, since there's Wayland support there already. It really does feel like a lot of extra hassle for security features I won't notice or benefit from anyway (as a single-user system used to browse mainly very trusted sites).
See more from me