From f3dcdda41bb70264b199eff862c6a7f0aa6b8927 Mon Sep 17 00:00:00 2001 From: Yuka Date: Tue, 7 Sep 2021 09:45:49 +0200 Subject: [PATCH] fix: only set `enable-features` if the user hasn't --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index a1f76e8..70530ea 100644 --- a/main.js +++ b/main.js @@ -38,7 +38,9 @@ app.commandLine.appendSwitch('disable-features', 'IOSurfaceCapturer'); app.commandLine.appendSwitch('force-fieldtrials', 'WebRTC-Audio-Red-For-Opus/Enabled/'); // Enable optional PipeWire support. -app.commandLine.appendSwitch('enable-features', 'WebRTCPipeWireCapturer'); +if (!app.commandLine.hasSwitch('enable-features')) { + app.commandLine.appendSwitch('enable-features', 'WebRTCPipeWireCapturer'); +} // Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580 app.allowRendererProcessReuse = false;