As of November 2022, it may be necessary to additionally set the XDG_CURRENT_DESKTOP=gnomeenvironment variable before launching Zoom to allow Wayland screen sharing even on non-Gnome desktop environments, because Zoom still seems to perform a legacy check for this variable before offering Wayland native screen sharing.
Following the Arch Wiki I already did enableWaylandShare=true
Well, I ran the command systemctl --user set-environment XDG_CURRENT_DESKTOP=GNOME
checked with systemctl --user show-environment
that the environment variable got applied.
Then started Zoom again, tried to share the screen and got the same error message.
Then tried systemctl --user set-environment XDG_SESSION_DESKTOP=GNOME
Tried to share the screen, same result.
Tried also with =gnome, same result.
Probably the latest update of Zoom can’t be made to share the screen on KDE Plasma Wayland anymore.
I copied /usr/share/applications/Zoom.desktop to ~/.local/share/applications and edited the Exec= line to Exec=env XDG_CURRENT_DESKTOP=GNOME /usr/bin/zoom %U
(@linux-aarhus your suggestion with Exec=env XDG_CURRENT_DESKTOP=GNOME && /usr/bin/zoom %U didn’t work in this case.)
Now Zoom starts and I can share the screen.
(If there is any Arch Wiki editor around, they can take my solution to the Arch Wiki.)
I thought the issue got resolved by my hack, but it’s not.
I don’t get the error message anymore, but I can’t select a screen or window to share. I had to downgrade zoom to 6.0.12.
In the long run I will migreate that machine from KDE to Gnome.