I am running Fedora Kinoite and one of the quirky behaviors I have experienced ever since switching to wayland is being unable to share my screen on discord.
I am running discord as flatpak and I have xwaylandvideobridge installed (it does come with the default installation) and running (present in the tray icons).
When trying to share my screen the “choose what to share” window appears (it doesn’t display very nicely and some text is covered by other ui elements, but oh well) and lets me pick but a second after selecting, the same window pop back up again in loop.
If I keep selecting the same screen to share and continue while I continue the discord dialog, eventually my stream starts but it is endlessly loading.
I am having this issue exclusively with the discord app, while sharing through browser works just fine. I know it’s likely due to discord’s poor wayland support but isn’t xwaylandvideobridge in the default install for a reason? I don’t really see many topics on this forum as well, so I am assuming it’s no very common thing.
I am also having the same issue with Discord screen/application sharing on Bazzite.
I tested sharing a screen/application with OBS and it had no issues with the portal, selecting the share and then start using it.
I am only noticing this on Discord (it is flatpak version) so far. It used to work just fine about a month ago, but I don’t use the feature that often, so I don’t know exactly when it stopped working correctly.
XWaylandVideobridge does prompt me when I try to screen share and a still frame of the screen/window I selected appears on the discord app as well.
If I start streaming immediately, the stream starts but never loads.
If I do not start streaming immediately, I get reprompted every few seconds to select which screen to use. Every time I select which screen or window to use, the discord preview updates and looks “live” (the cursor moves in the preview similarly to how I move it) for about half second before freezing back in that still frame and XWaylandVideobridge asks again what to stream. This can be done repeatedly, experiencing the preview to unfreeze and freeze again.
in general this sounds like an issue to direct to Discord and KDE. Primarily Discord as they are the ones needing to get their *** together and support Wayland.
They use Electron but you can (and may want to) use it through the browser.
The same is true for Discord, Teams, Zoom and more too though. They may implement some arbitrary restrictions though, because they can track you and display popups etc if you install the app™
The stream “starts” normally and everyone in my channel/in my group chat/in my chat is notified that I’ve started streaming. Everything as normal for my “status” as streaming.
The problem is exclusively on the video stream. If anybody in the channel tries to join the stream the loading will keep going indefinitely while it would only last a few seconds at most if I did stream while using xorg.
This doesn’t only happen to others, but also myself if I open my stream’s preview. An endless loading screen.
It’s almost like XWaylandVideobridge returns to discord that window is available to be captured but then does not provide data when it is actually trying to capture it.
If we include the other consideration I’ve made (the preview in the window selection panel works for a second), I would say discord is only able to use it for that time before failing to capture