In both
- MS Teams (Microsoft Teams Version 1.5.00.10453 (64-bit)) and
- Zoom (Version: 5.10.4 (2845))
on Ubuntu 22.04 LTS (42.0, Wayland) no screen shows up after clicking on "share screen".
Hardware: Lenovo ThinkPad X1 Yoga 3rd, Mesa Intel® UHD Graphics 620 (KBL GT2), Intel® Core™ i7-8550U CPU @ 1.80GHz × 8 connected with two monitors via Thinkpad Thunderbolt 3 dock.
Is there a configuration issue, or is screen sharing not supported?
These applications have not been updated for Wayland, which is why screensharing does not anymore work for the time being.
You may want to switch to Xorg to regain this functionality. To do so, log out, then, before entering your password, click the cog on the bottom right and log in on "Ubuntu on Xorg".
Other workarounds include relaxing security settings in Gnome Shell or using a browser based version of Zoom in a browser that supports Wayland.
screen sharing is disabled as ubuntu starting from version 21.4 started depending on wayland instead of xorg. to fix this issue easily:
a. To login with xorg for user session
b. To disable wayland any use xorg only
sudoedit /etc/gdm3/custom.conf
waylandEnabled=false
-- just remove the #this will trigger ubuntu to fall back to xorg and then you can share screen again.
When rebooting, you need to manually select the "Ubuntu with xorg" in login screen (bottom right of the screen there should be a gear, click on it to select the x11 version)
I got the same issue I was able to solve it from below approach
Other answers disabling Wayland works, but for anyone for which dropping Wayland just to enable screensharing isn't an option:
the ms teams web client does work in Ubuntu 22.04.