Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wayland on Gentoo not supported in Zoom?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Fri Dec 11, 2020 7:27 am    Post subject: Wayland on Gentoo not supported in Zoom? Reply with quote

Slight clickbaity, but I apparently can't share my desktop in Zoom. I'm on Wayland in Gnome. As soon as I try to share my screen, I get a big fat warning saying that Zoom specifically supports Wayland on Gnome with Ubuntu 17 or above, Fedora 25 or above, Debian 9 or above, CentOS 8 or above, OpenSUSE Leap 15 or above, Oracle Linux 8 or above, RHEL 8 or above, Arch, AnterGos, Manjaro... But not Gentoo. "If your OS is not on the list, please use X11".

Is there a way to force this? I kinda not want to install X11 anymore.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1548
Location: Germany

PostPosted: Fri Dec 11, 2020 8:56 am    Post subject: Reply with quote

Kinda shot in the dark: If you can find the location of this message maybe it is only a string system version compare and then add gentoo to the list. Dunno if this is possible but maybe it is on a simple bash script which can be altered.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Fri Dec 11, 2020 2:06 pm    Post subject: Reply with quote

I guess the other way is to figure out how it determines the distro. The standard is now /etc/os-release - try to run it under strace and see if it accesses that file or if it tries to execute some commands.
Back to top
View user's profile Send private message
f1tz
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2020
Posts: 88

PostPosted: Mon Dec 14, 2020 5:05 pm    Post subject: Reply with quote

I dont know if that helps a lot, but some folks on the sway window manager subreddit are playing with some workarounds:

https://www.reddit.com/r/swaywm/comments/j1zrm2/ive_find_to_work_around_for_zoom_share_screen_on/

https://www.reddit.com/r/swaywm/comments/hr155h/zoom_screenshare_on_wayland/

https://gitlab.com/lelgenio/dotfiles/-/blob/master/dotfiles/scripts/sway-screenshare
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3286
Location: Canada

PostPosted: Mon Dec 14, 2020 5:10 pm    Post subject: Reply with quote

I thought zoom has 'wayland' USE flag, what does it do ?
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Tue Dec 15, 2020 12:30 am    Post subject: Reply with quote

Etal wrote:
I guess the other way is to figure out how it determines the distro. The standard is now /etc/os-release - try to run it under strace and see if it accesses that file or if it tries to execute some commands.

This was exactly it, lol. I just changed the os-release to be that of Ubuntu 18.04 and tada, it worked...

Is it problematic if I keep it like this? :lol:
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1548
Location: Germany

PostPosted: Tue Dec 15, 2020 1:20 pm    Post subject: Reply with quote

You will see it as other packages might stumble again like zoom did.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9014

PostPosted: Tue Dec 15, 2020 1:27 pm    Post subject: Reply with quote

Q-collective wrote:
Is it problematic if I keep it like this? :lol:

It can break any package building with cmake because it checks these files to determine the distro libdir paths.

Needless to say, what a ridiculous thing to do for a package.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22148

PostPosted: Sat Dec 19, 2020 12:41 am    Post subject: Reply with quote

If you need to keep this override in place to placate Zoom, and you need to use packages that need the true value, you may be able to satisfy both by running Zoom in a chroot or a mount namespace. For the latter, you would revert /etc/os-release to its true value, and store a new file /etc/ubuntu-os-release with the lie that Zoom requires. Then, to run Zoom, you unshare the mount (and user) namespaces, mount --bind /etc/ubuntu-os-release /etc/os-release, exec zoom. This is simplified, but should get you started in your research. If you want to pursue this and need help, please ask.
Back to top
View user's profile Send private message
ulm
Developer
Developer


Joined: 04 Oct 2004
Posts: 98
Location: Mainz, Germany

PostPosted: Sun Feb 21, 2021 9:34 pm    Post subject: Reply with quote

Could someone test if the following works?
  • Install sys-apps/bubblewrap
  • Save the following snippet as ~/os-release:
    Code:
    PRETTY_NAME="Debian GNU/Linux 10 (buster)"
    NAME="Debian GNU/Linux"
    VERSION_ID="10"
    ID=debian

  • Start zoom with the command:
    Code:
    $ bwrap --dev-bind / / --ro-bind ~/os-release /etc/os-release /usr/bin/zoom

If it does, I could add it to the wrapper script in the net-im/zoom ebuild.
Back to top
View user's profile Send private message
bugalo
n00b
n00b


Joined: 05 Jul 2015
Posts: 38

PostPosted: Wed Mar 10, 2021 4:20 pm    Post subject: Reply with quote

ulm wrote:
Could someone test if the following works?
  • Install sys-apps/bubblewrap
  • Save the following snippet as ~/os-release:
    Code:
    PRETTY_NAME="Debian GNU/Linux 10 (buster)"
    NAME="Debian GNU/Linux"
    VERSION_ID="10"
    ID=debian

  • Start zoom with the command:
    Code:
    $ bwrap --dev-bind / / --ro-bind ~/os-release /etc/os-release /usr/bin/zoom

If it does, I could add it to the wrapper script in the net-im/zoom ebuild.


I confirm, this workaround does work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum