Confused on Steam Play and Proton? Be sure to check out our guide.
We do often include affiliate links to earn us some pennies. See more here.

Xwayland Video Bridge created to improve Linux screen sharing

By - | Views: 48,313

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".

Read more in the blog post and see it on GitLab.

Article taken from GamingOnLinux.com.
15 Likes
About the author -
author picture
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly came back to check on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly. Find me on Mastodon.
See more from me
24 comments
Page: «2/3»
  Go to:

Purple Library Guy Mar 23, 2023
Quoting: usernamerSo this is more of a workaround hack than a definitive solution.
Presumably the definitive solution is for Wayland to become very mature and for everyone to switch to it so nobody is using X or XWayland any more.
Marlock Mar 23, 2023
Quoting: minidou
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.
I don't understand which case this will help that xdg-desktop-portal-wlr doesn't handle.
If you read the details you'll see their app is a convenient GUI for a non-expert user to be able to leverage what already exists (xdg-portals, pipewire, etc) through a system tray minimalist app

how do you leverage xdg-desktop-portal-wlr at the moment?
Shmerl Mar 24, 2023
Nice. I've been using Wayland for quite a while already, and recently tried OBS screen recording - it was a breeze. Stuff like Discord and co. I suppose simply don't care to provide support for modern desktop use case. Stark contrast with projects like OBS. So these kind of solutions should indeed help until those lagging behind decide to provide support.
Adutchman Mar 24, 2023
Quoting: zany130
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 😔

I'm in the same boat, so I'm really happy this exists. It was pretty much the only reason I still sometimes switched to X11
Linas Mar 24, 2023
View PC info
  • Supporter Plus
Quoting: MayeulC
Quoting: LinasSomething like that should really be built into Wayland.
I'm not sure if you mean screensharing or that video bridge? [...]

Should it be in XWayland? Maybe, but this modular solution is good as well.
What I mean is that there should be a way for legacy apps to continue functioning, including screen sharing. Otherwise we end up with a chicken and egg problem where people cannot switch to Wayland if their apps don't work, and apps won't support Wayland if nobody uses it.
minidou Mar 24, 2023
Quoting: Marlock
Quoting: minidou
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.
I don't understand which case this will help that xdg-desktop-portal-wlr doesn't handle.
If you read the details you'll see their app is a convenient GUI for a non-expert user to be able to leverage what already exists (xdg-portals, pipewire, etc) through a system tray minimalist app

how do you leverage xdg-desktop-portal-wlr at the moment?

The way I understand it, it's a sort of proxy for screen sharing. It exposes whatever you want on any graphic server, which can then be acquired by most apps.

I guess I'll have to try to understand better, but teams pwa in wayland+gnome is already great (https://github.com/emersion/xdg-desktop-portal-wlr/issues/107 aside), I suppose it's only relevant for older configurations.
Marlock Mar 24, 2023
Quoting: Linas
Quoting: MayeulC
Quoting: LinasSomething like that should really be built into Wayland.
I'm not sure if you mean screensharing or that video bridge? [...]

Should it be in XWayland? Maybe, but this modular solution is good as well.
What I mean is that there should be a way for legacy apps to continue functioning, including screen sharing. Otherwise we end up with a chicken and egg problem where people cannot switch to Wayland if their apps don't work, and apps won't support Wayland if nobody uses it.

They already can (this app is in fact proof of that), but in X.org any app could see any other app (or the entire user's screen for that matter) at any time, without explicit user consent.

It was actually barely impossible to block an app from seeing others even if you actively tried to... and that's the gaping security hole that strongly motivates the switch to Wayland.

You'll notice that the new app's dev comments on their blog that they could've even made it entirely automatic, so any app could see any other app without asking the user anything, if their solution was designed slightly different... but they chose to design it in a way that both makes things easier and still keeps you safe from silent snooping.


Last edited by Marlock on 24 March 2023 at 4:37 pm UTC
JordanPlayz158 Mar 24, 2023
Quoting: zany130
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 😔
By game activities do you mean rich presence or do you mean game activies in VCs like putt party, for the former, yes, it does not have rich presence. For the latter though, I played putt party just fine, on Webcord 3.x even, not even 4.x (only staying on 3.X as on 4.X, when in a vc for a while, it just dies)
melkemind Mar 26, 2023
Will this finally allow steam remote play to work properly in Wayland?
michaldybczak Mar 26, 2023
Flatpack Zoom didn't work with it, but Zoom from AUR works great in Plasma. The annoying notification about its working only in Gnome is gone, and it simply opens the usual sharing option window.
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.