Wednesday, March 12, 2025

Ubuntu 22.04 Wayland share screen

 After switching to Dell XPS 13 which running Ubuntu 22.04, I noticed that trying to share screen through Google Meet, it shows this:-

 


 This - Use operating system settings, I never saw it before. Usually here we will be presented the windows that we want to share.

 It turned out that screen sharing in Ubuntu 22.04 indeed an issue, due to the use of Wayland instead of Xorg as its display server. Many suggested to disable wayland and back to use Xorg. I try to avoid that since Wayland seems to works fine so far.

After some searching, the conclusion seems we can make this working by installing some packages.

sudo apt install xdg-desktop-portal xdg-desktop-portal-gnome

But it turned out that I have already installed the packages! So what were the problems?

 Well, turn out it's more psychological than technical. Since the pop up is different than what I'm used to before, I never click the allow button. But clicking the allow button we will see this:-

 


Which is what I'm looking for - a way to specify which window I want to share.