Merge pull request #2308 from element-hq/dbkr/apply_gtk_workaround_backport

Apply workaround to fix app launching on Linux
This commit is contained in:
David Baker 2025-05-06 14:20:38 +01:00 committed by GitHub
commit 747245e63f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -326,6 +326,11 @@ app.commandLine.appendSwitch("--enable-usermedia-screen-capturing");
if (!app.commandLine.hasSwitch("enable-features")) {
app.commandLine.appendSwitch("enable-features", "WebRTCPipeWireCapturer");
}
// Workaround bug in electron 36:https://github.com/electron/electron/issues/46538
// Hopefully this will no longer be needed soon and can be removed
if (process.platform === "linux") {
app.commandLine.appendSwitch("gtk-version", "3");
}
const gotLock = app.requestSingleInstanceLock();
if (!gotLock) {