From 96e5389779f60c91b8fe80d7bd9af413d72ec61f Mon Sep 17 00:00:00 2001 From: Yureka Date: Mon, 6 Sep 2021 16:18:16 +0200 Subject: [PATCH] Only set `enable-features` if the user hasn't --- src/electron-main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/electron-main.ts b/src/electron-main.ts index b42f72a..b77cf62 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -780,7 +780,9 @@ ipcMain.on('seshat', async function(ev, payload) { }); app.commandLine.appendSwitch('--enable-usermedia-screen-capturing'); -app.commandLine.appendSwitch('enable-features', 'WebRTCPipeWireCapturer'); +if (!app.commandLine.hasSwitch('enable-features')) { + app.commandLine.appendSwitch('enable-features', 'WebRTCPipeWireCapturer'); +} const gotLock = app.requestSingleInstanceLock(); if (!gotLock) {