Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 754384

Summary: net-im/zoom-5.4.53391.1108: Unable to share screen on GNOME Wayland
Product: Gentoo Linux Reporter: Mart Raudsepp <leio>
Component: Current packagesAssignee: Ulrich Müller <ulm>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: ave, dilfridge, leho, mva, pacho, roubro1991
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 853748    
Bug Blocks:    
Attachments: Popup when trying to share screen, text not selectable to copy-paste
bin/zoom wrapper used by flatpak package

Description Mart Raudsepp gentoo-dev 2020-11-14 16:15:01 UTC
Created attachment 671386 [details]
Popup when trying to share screen, text not selectable to copy-paste

net-im/zoom doesn't allow to share screen on GNOME Wayland, because it has a whitelist that doesn't include Gentoo based on os-release and/or lsb-release parsing.
Comment 1 Ulrich Müller gentoo-dev 2020-11-21 07:52:24 UTC
I have reported this upstream at: https://support.zoom.us/hc/en-us/requests/new
Let's see if they're more responsive than last time.
Comment 2 Ulrich Müller gentoo-dev 2020-11-21 08:00:27 UTC
Great, I've received an automatic reply:

  From: "Zoom Support (Zoom Video Communications)" <support@zoomus.zendesk.com>
  Subject: [Request Closed] zoom-5.4.53391.1108: Unable to share screen on
      GNOME Wayland
  To: Ulm <ulm@gentoo.org>
  Date: Sat, 21 Nov 2020 07:50:37 +0000
  Reply-To: Zoom Video Communications <support+id8813387@zoomus.zendesk.com>

  [...]

  Unfortunately, we are unable to respond to your open tickets at this time.
  We encourage you to leverage our Online Resources. If you are a part of a
  corporate account, and need advanced technical support beyond our Online
  Resources, please contact your Zoom account administrators.


I must admit that I am close to dropping maintainership of this package, because upstream is totally uncooperative and unresponsive. They should be glad that distros make their client available.
Comment 3 Leho Kraav (:macmaN @lkraav) 2021-03-31 13:03:24 UTC
This sys-apps/bubblewrap solution looks pretty clever https://forums.gentoo.org/viewtopic-p-8578101.html#8578101
Comment 4 Mart Raudsepp gentoo-dev 2021-03-31 13:37:26 UTC
Me and ulm worked on a solution based on bubblewrap. The /etc/os-release he offered me didn't work out, but a stock one from an ubuntu LTS did work.
I haven't had time to figure out which settings we can change there without triggering this stupid dialog, in order to have Gentoo mentioned at least in a few places still, should they look at that to find that it's maybe worth dropping this nonsense.

So I did get it to work, but with the state of pipewire/gnome-shell/xdg-desktop-portal-gtk/whatever I had, screenshare did work, but it was weird. My left non-primary monitor sharing didn't work at all (other side couldn't see anything useful), and the primary monitor sharing showed just the window on it, but lacked the gnome-shell UI on top, etc.
As it seemed a bit useless anyways until I looked more deeply from the pipewire angle (by now there's newer versions, etc), I didn't spend time on figuring out a good os-release file for ulm yet. I'm sure he'd appreciate help with that.

To test I used the following:

bwrap --dev-bind / / --ro-bind ~/ubuntu-os-release /etc/os-release /usr/bin/zoom

Where ~/ubuntu-os-release was /etc/os-release fetched from a ubuntu LTS install.
Comment 5 Mart Raudsepp gentoo-dev 2021-03-31 13:39:09 UTC
Maybe I should have read the newer posts on the forum thread. Now I see ulm already requested testing help there himself ;)
Comment 6 Leho Kraav (:macmaN @lkraav) 2021-03-31 13:42:47 UTC
(In reply to Mart Raudsepp from comment #5)
> Maybe I should have read the newer posts on the forum thread. Now I see ulm
> already requested testing help there himself ;)

I just discovered this and will start trying this out in the upcoming calls, of which I have plenty every week.

These days, I'm a single (big) monitor person these days, so multi-monitor will be out of scope, until further notice.
Comment 7 Mart Raudsepp gentoo-dev 2021-07-11 13:54:37 UTC
Created attachment 723283 [details]
bin/zoom wrapper used by flatpak package

flatpak uses this bin/zoom wrapper to force wayland screenshare to enabled.

Perhaps if this config file is flipped manually, it would bypass the distro check, if it's still there in current versions?

Can't test this with actual camera anytime soon myself, perhaps someone could take a closer look. If it gives the distro warning (with no bwrap hack in use), try to change enableWaylandShare to true in ~/.config/zoomus.conf and restart the app - does it stop complaining then and does screenshare work?
Comment 8 Rouven 2021-07-16 14:24:15 UTC
> change enableWaylandShare to true in ~/.config/zoomus.conf
This is working for me.

Just a side note: Screenshare of videos is laggy even though "optimize for video clip" is enabled.
Comment 9 Ulrich Müller gentoo-dev 2021-07-16 17:05:57 UTC
So, what do we do? Add a note to README.gentoo that users should add the line
enableWaylandShare=true
to their ~/.config/zoomus.conf, or replace any =false line already present?
Comment 10 Mart Raudsepp gentoo-dev 2021-07-20 05:19:50 UTC
Maybe it could also be just a similar or same approach as the flatpak wrapper?
Comment 11 Ulrich Müller gentoo-dev 2021-07-20 06:12:51 UTC
That would mean modifying a user configuration file in HOME. I believe we have a policy saying that writing to HOME is off-limits.

strace shows that zoom tries to read ~/.config/zoomus.conf but also /etc/xdg/zoomus.conf. What happens if you put a file containing a single line enableWaylandShare=true in the latter location?
Comment 12 Ulrich Müller gentoo-dev 2021-07-20 07:57:08 UTC
Until we find a better solution, I have added a hint in README.gentoo:

--- a/net-im/zoom/files/README.gentoo
+++ b/net-im/zoom/files/README.gentoo
@@ -3,3 +3,6 @@ display compositing. If you encounter a black window when sharing
 the screen, then one of the following actions should help:
 - Enable compositing in your window manager if it is supported
 - Alternatively, run the xcompmgr command (from x11-misc/xcompmgr)
+
+To enable screen sharing on GNOME Wayland, edit ~/.config/zoomus.conf
+and change the value of enableWaylandShare to true.
Comment 13 Ulrich Müller gentoo-dev 2022-06-22 18:56:30 UTC
Please test if the problem is fixed in version 5.11.0.3540. Release notes say:
"Resolved an issue regarding sharing content on Gnome 41 with Wayland"