zigford.org/screen-sharing-and-capture-in-wayland-on-gentoo.html
2020-07-21 06:49:32 +10:00

108 lines
4.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="main.css" type="text/css" />
<link rel="stylesheet" href="blog.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="Subscribe to this page..." href="feed.rss" />
<title>Screen sharing and capture in Wayland on Gentoo</title>
</head><body>
<div id="divbodyholder">
<div class="headerholder"><div class="header">
<div id="title">
<h1 class="nomargin"><a class="ablack" href="http://zigford.org/index.html">zigford.org</a></h1>
<div id="description"><a href="about.html">About</a><a href="links.html"> | Links</a><a href="scripts.html"> | Scripts</a><br>Sharing linux/windows scripts and tips</br></div>
</div></div></div>
<div id="divbody"><div class="content">
<!-- entry begin -->
<h3><a class="ablack" href="screen-sharing-and-capture-in-wayland-on-gentoo.html">
Screen sharing and capture in Wayland on Gentoo
</a></h3>
<!-- bashblog_timestamp: #202006012105.46# -->
<div class="subtitle">June 01, 2020 &mdash;
Jesse Harris
</div>
<!-- text begin -->
<p>The article shows the tweaks I had to make to my system in order to
be able to share my screen in Zoom, and capture my screen in
OBS under Gnome on Wayland on Gentoo.</p>
<hr />
<h2>Update</h2>
<p>While I thought this was working, when I came to a meeting to share
my screen, my collegues could not see anything bar a single application.</p>
<p>I did some troubleshooting on my own using Zooms record feature and
was unable to resolve it using the Zoom flatpak package.</p>
<p>I installed Zoom directly as an ebuild and was able to see the entire screen
using that.</p>
<h2>Zoom</h2>
<p>Firstly, I'm using zoom via Flatpak. Flatpak is an official overlay
on Gentoo.</p>
<p>Once flatpak and zoom is installed via:</p>
<pre><code> flatpak install us.zoom.Zoom
</code></pre>
<p>You can enable screen sharing via the following tweaks.</p>
<p>Tweak 1: Allow flatpak to talk to gnome stuff I don't really understand</p>
<pre><code> sudo flatpak override --talk-name=org.gnome.Shell \
--talk-name=org.gnome.Shell.Screenshot \
--talk-name=org.gnome.SessionManager \
--talk-name=org.freedesktop.PowerManagement.Inhibit \
--talk-name=org.freedesktop.ScreenSaver us.zoom.Zoom
</code></pre>
<p>Ref: https://github.com/flathub/us.zoom.Zoom/pull/182</p>
<p>Tweak 2: Set this in your ~/.var/app/us.zoom.Zoom/config/zoomus.conf</p>
<pre><code> [General]
enableWaylandShare=true
</code></pre>
<h2>OBS-Studio</h2>
<p>This guy Georges Stavracas wrote an OBS plugin to interface with
xdg-desktop-portal. It works quite well and I've written an ebuild
for it to work in Gentoo.</p>
<p>You can add my overlay <a href="https://github.com/zigford/gentoo-zigford">here</a>
or pilfer my ebuild directly under media-plugins/obs-xdg-portal.</p>
<h3>Hot Tip</h3>
<p>At first I could not get it to work, and that is because I lacked the
understanding about how pipewire and xdg-desktop-portal works.
One thing I found sorely lacking is the documentation. Eventually I
stumbled upon someone saying you need to enable (or start) pipewire:</p>
<pre><code> systemctl --user enable --now pipewire
</code></pre>
<p>Now the plugin allows you to pick your desktop. Strangely, the screenshots
show the ability to choose an app, whereas I can only choose my screen.</p>
<p>Oh well, let me know if you know why.</p>
<p>Cheers</p>
<p>Tags: <a href='tag_gentoo.html'>gentoo</a>, <a href='tag_gnome.html'>gnome</a>, <a href='tag_wayland.html'>wayland</a>, <a href='tag_zoom.html'>zoom</a>, <a href='tag_obs.html'>obs</a></p>
<!-- text end -->
<!-- entry end -->
</div>
<div id="footer">&copy <a href="http://twitter.com/zigford_org">Jesse Harris</a> &mdash; <a href="mailto:jesse&#64;zigford&#46;org">jesse&#64;zigford&#46;org</a><br/>
Generated with <a href="https://github.com/cfenollosa/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
</div></div>
</body></html>