Merge pull request #261 from yu-re-ka/feature/fix-enable-features

Only set `enable-features` if the user hasn't
This commit is contained in:
Travis Ralston
2021-09-06 22:36:26 -06:00
committed by GitHub

View File

@@ -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) {