Only set enable-features if the user hasn't

This commit is contained in:
Yureka 2021-09-06 16:18:16 +02:00
parent fdf99f3d53
commit 96e5389779
No known key found for this signature in database
GPG Key ID: B95AE06334AFF6BA

View File

@ -780,7 +780,9 @@ ipcMain.on('seshat', async function(ev, payload) {
});
app.commandLine.appendSwitch('--enable-usermedia-screen-capturing');
if (!app.commandLine.hasSwitch('enable-features')) {
app.commandLine.appendSwitch('enable-features', 'WebRTCPipeWireCapturer');
}
const gotLock = app.requestSingleInstanceLock();
if (!gotLock) {