Wayland screen sharing broken with GNOME 41 on Fedora 35 | Community
Skip to main content
Newcomer
November 4, 2021
Solved

Wayland screen sharing broken with GNOME 41 on Fedora 35

  • November 4, 2021
  • 94 replies
  • 6 views

Hi,

 

I recently updated to Fedora 35 with GNOME 41. This GNOME release restricts the screenshot API which Zoom has used for screen sharing on Wayland, so the screen sharing functionality no longer works (see here on Ask Fedora).

 

I require screen sharing for school, and I'm sure many others have a similar requirement/system configuration. With Wayland increasingly becoming a de facto standard on Linux, it is crucial that Zoom support Wayland screen sharing.

Best answer by dalewe

It's not a bug in xdg-desktop-portal-wlr, so I'm not going to create a pull request to add code that does nothing (if the client is behaving correctly...). There's already work on supporting to share only a region of the screen (https://github.com/emersion/xdg-desktop-portal-wlr/pull/156) which should coincidentally also fix Zoom.

 

Simply running Zoom with "env XDG_CURRENT_DESKTOP=GNOME /usr/bin/zoom" should be enough to make Zoom think it's on Gnome while still keeping dbus working.

 

Edit: This should not be marked as solution! If any, https://community.zoom.com/t5/Meetings/Wayland-screen-sharing-broken-with-GNOME-41-on-Fedora-35/m-p/67283/highlight/true#M35878 provides a workaround for the issue, which has to be fixed by Zoom!

94 replies

Newcomer
June 22, 2022

Well, you got me excited there for a second. It at first seems to work on Sway but then other participants don't see your screen at all as others have reported with KDE.

Zoom even uses the dmabuf variant of ScreenCast, which would be great if it only worked. Forcing it to SHM, xdg-desktop-portal-wlr complains about Pipewire being out of buffers the whole time, not sure what's going on there (and Zoom eventually crashing).

Would be interesting to know whether xdg-desktop-portal-gtk does anything different regarding screensharing than the other implementations.

 

All in all this is a very disappointing experience.

Newcomer
June 23, 2022

So you can at least try and share your screen on sway. When I trick zoom to let me try to share my screen like this

XDG_CURRENT_DESKTOP=ubuntu:GNOME XDG_SESSION_DESKTOP=ubuntu zoom

It lets me try to share my screen with the gnome-looking screen-share application window as an option. But selecting it just backs me out of the screen share window like it tried to do something but nothing happens. I even have xdg-desktop-portal-wlr but still no luck.

I mean fixing it so i can at least share a blank screen won't do me much good but I'm curious how you got your setup to work like it did.

Newcomer
June 23, 2022

same issue here on kde, except there is no share on the other user's screen, but on the client everything looks like it's working

Newcomer
June 23, 2022

Another data point:  when running zoom 5.11.0 (3540) on Fedora 35 as a Wayland app under Wayland and Gnome 42, I find that I can screen share.   However, there are problems with functionality still. 

 

The worst of them is that once I start screen sharing.  I cannot stop it!  The floating toolbar that allows control of these things shows itself for only a few seconds, but then  disappears and will not return!  (I can only use Gnome to stop the screen sharing but that does not work well).   Hopefully I am doing something wrong and there is a way to get this floating toolbar, or at least the major aspects of its functionality, back.   (But I don't think I am doing anything wrong here)

 

Does anyone else see this behavior?  (Or if not, can someone say how they stop sharing once they have started it?)

 

The above being said, it seems like the screen sharing can be used at this point (in my setup), since Zoom can be launched as an Xorg app  within Wayland  and running under XWayland,  where the screen sharing now works and also, the floating toolbar does not go away.     The screen sharing can be stopped and started at will within a single call. So I will probably be installing new Fedora distributions running Wayland on all my computers now.

 

Newcomer
June 23, 2022

Hey it seems to work now with the 5.11 version, thanks mates

Newcomer
June 23, 2022

After months of waiting for screen sharing to work under Wayland it is so disappointing do find that it only works with Gnome. Why is this? Do we have to wait many more months for it to be done properly so it works under KDE and other DEs? Can Brandon ask the developers why we have this restriction and how long it is going to take to fix it?

Newcomer
June 23, 2022

After some testing (all Fedora 36 laptops on GNOME wayland) one crashes on screenshare with no apparent reason, can't figure out why since the setup is close to identical, any idea where to start? the logs just show a code 7 but no useful information it appears. Should I reach support or someone already has a workaround?

This seems like a driver issue, maybe
```
Module libedit.so.0 with build-id 786ebbe150c63e27beb2957d717bece33431af6f
Stack trace of thread 46419:
#0 0x00007f3572957f8d __memcpy_avx_unaligned_erms (libc.so.6 + 0x157f8d)
#1 0x00007f34ddd11b04 _mesa_GetTexSubImage_sw (iris_dri.so + 0x311b04)
#2 0x00007f34ddb7a1ad st_GetTexSubImage (iris_dri.so + 0x17a1ad)
```

EDIT:
After today's OS update, zoom doesn't seem able to recognise screens and windows on Wayland, just shares the main display whatever my choice is. Unfortunately this is not mature enough to excuse the cost for a license since there are other tools that work.

Will keep an eye though

Newcomer
October 27, 2022

just wanna note, I updated today and it works! thanks @YaBoiB 

Newcomer
June 23, 2022

Any eta for supporting other desktops on an API that supports all of them?

ngompa_datto
Newcomer
Newcomer
June 23, 2022

Zoom 5.11.0 uses a cross-desktop API. The restriction on GNOME is artificial now, rather than technical.

Newcomer
June 23, 2022

yes I know, I posted that numerous times above, I just wanted to keep this issue at the bottom

Newcomer
June 24, 2022

Was able to download the Zoom 5.11.0 (3540) release on Fedora 36 + Wayland, and in preliminary testing, it looks like it has proper support for screen sharing now!

Newcomer
June 24, 2022

Don't give a picture to zoom that it's finished and working it still doesn't work on every other desktop due to an arbitrary restriction that they have to remove. People posting that is working will make zoom less likely to fix the issue

Newcomer
June 24, 2022

But we do need to give realistic feedback about what works and what doesn't, to give them the best possible understanding of where they stand, right? It's now working under some circumstances - that's huge progress, even if we are not entirely there yet.

 

Newcomer
June 24, 2022

Alright, 5.11.0 is a huge step forward for me. Using openSUSE Tumbleweed 64 bit (GNOME etc), I can now share entire screens without the unsafe_mode workaround, I can share individual windows (even if they are not currently visible on my desktop), and, most importantly, I can now do the same in a webinar, where previously not even the workaround helped. I checked this in actual meetings to verify that the actual content is being shared, not just a grey rectangle or anything. Thanks to zoom for *finally* fixing this - even though it sounds like there is some more work to do for other platforms.

Newcomer
June 24, 2022

Agreed. It's very important to give feedback on THIS ISSUE.

 

Those with problems on other Linux platforms should feel free to start a new thread. It's important to note flaws in the solution for this issue and not others.

 

 

Newcomer
June 24, 2022

flaws in others? idk about that, but what I do know is that I am going to start a new thread

track progress here: https://community.zoom.com/t5/Meetings/Screensharing-only-works-on-GNOME-wayland-when-it-should-work-on/m-p/64823#M34464

Newcomer
June 25, 2022

This is just ridiculous. I'm on Gnome, an Arch-based distro (EndeavourOS), zoom updated to 5.11, and it still doesn't let me share because of some artificial limitations...

I'll leave it without further comment because I have nothing nice to say about those developers working for zoom.

Newcomer
June 30, 2022

still broken on kde & other desktops 5.11.1

YaBoiB
Community Champion | Employee
Community Champion | Employee
June 30, 2022

@idkman

 

 If you would like to put in a Support ticket for kde I would be happy to monitor it and help the Support Technician with guidance. 

 

Regards,

Brandon

Newcomer
June 30, 2022

where do I do that?