Microsoft Teams and Wayland - will screen sharing be fixed in 21.04?

Solution 1:

The problem does not lie with Ubuntu nor Linux.

Teams is an app built on the electron framework, so basically it is one package consisting of html5 with javascript running on chromium. This makes it possible to use it on any platform that can run chromium.

Problem is, wayland support for chromium is incomplete and buggy. Therefore on wayland it is forced to use xwayland. This further reduces the possibilities of things like screensharing.

In short, for now use Xorg if you have to make full use of electron based apps like Teams.

Wayland will eventually work as soon as chromium has full support of it and all electron apps have been upgraded to use that version of chromium.

Solution 2:

As an alternative option, you can run the Teams web app on Chrome or Edge Beta, which allow sharing on Wayland.