aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Settgast <csett86@web.de>2021-05-12 21:06:17 +0200
committerChristoph Settgast <csett86@web.de>2021-05-12 21:07:47 +0200
commit0e0483cbc52a9cad1fef51ed5abb846bd6445b11 (patch)
treeb103384b10cea84627cf7b21e4eba13cee05d0fe
parent22b34066132f7dd39920e7f3a2f3d3eb26695374 (diff)
feat(linux): enable PipeWire support for screensharing
This is required on wayland based desktops like Fedora 34 or Ubuntu 21.04. Closes: #567
-rw-r--r--main.js3
1 files changed, 3 insertions, 0 deletions
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;