From 0e0483cbc52a9cad1fef51ed5abb846bd6445b11 Mon Sep 17 00:00:00 2001
From: Christoph Settgast <csett86@web.de>
Date: Wed, 12 May 2021 21:06:17 +0200
Subject: [PATCH] feat(linux): enable PipeWire support for screensharing

This is required on wayland based desktops like Fedora 34 or
Ubuntu 21.04.

Closes: #567
---
 main.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/main.js b/main.js
index a294ba4..94d4352 100644
--- a/main.js
+++ b/main.js
@@ -37,6 +37,9 @@ app.commandLine.appendSwitch('disable-features', 'IOSurfaceCapturer');
 // Enable Opus RED field trial.
 app.commandLine.appendSwitch('force-fieldtrials', 'WebRTC-Audio-Red-For-Opus/Enabled/');
 
+// Enable optional PipeWire support.
+app.commandLine.appendSwitch('enable-features', 'WebRTCPipeWireCapturer');
+
 // Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580
 app.allowRendererProcessReuse = false;
 
-- 
GitLab