Skip to content

Commit 8488dfd

Browse files
franz-dcCopilotJellyBrick
authored
fix: use gtk 3 switch as workaround (#3366)
Co-authored-by: Copilot <[email protected]> Co-authored-by: JellyBrick <[email protected]>
1 parent 7eed866 commit 8488dfd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ protocol.registerSchemesAsPrivileged([
114114
{ scheme: 'mailto', privileges: { standard: true } },
115115
]);
116116

117+
// https://github.com/electron/electron/issues/46538#issuecomment-2808806722
118+
if (is.linux()) {
119+
app.commandLine.appendSwitch('gtk-version', '3');
120+
}
121+
117122
// Ozone platform hint: Required for Wayland support
118123
app.commandLine.appendSwitch('ozone-platform-hint', 'auto');
119124
// SharedArrayBuffer: Required for downloader (@ffmpeg/core-mt)

0 commit comments

Comments
 (0)