Screen sharing with Zoom on KDE Wayland

Hello everybody!
Since yesterday I’m getting the following error message when I try to share the screen in Zoom:

I read the Arch Wiki

As of November 2022, it may be necessary to additionally set the XDG_CURRENT_DESKTOP=gnome environment 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

~ >>> cat ~/.config/zoomus.conf | grep enableWaylandShare                                                                                                                                                        
enableWaylandShare=true

I’m struggling to enable setting the environment variable XDG_CURRENT_DESKTOP on startup. What approach do you propose?

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 found a solution following this post:

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.)

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.

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.

image

:gnome: :grin: