From 8488dfd8f4fba3458ae3bda2de189150cd1a8f52 Mon Sep 17 00:00:00 2001 From: Franz DC Date: Tue, 3 Jun 2025 01:52:30 +0800 Subject: [PATCH] fix: use gtk 3 switch as workaround (#3366) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: JellyBrick --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index cc36a9d7..307a7231 100644 --- a/src/index.ts +++ b/src/index.ts @@ -114,6 +114,11 @@ protocol.registerSchemesAsPrivileged([ { scheme: 'mailto', privileges: { standard: true } }, ]); +// https://github.com/electron/electron/issues/46538#issuecomment-2808806722 +if (is.linux()) { + app.commandLine.appendSwitch('gtk-version', '3'); +} + // Ozone platform hint: Required for Wayland support app.commandLine.appendSwitch('ozone-platform-hint', 'auto'); // SharedArrayBuffer: Required for downloader (@ffmpeg/core-mt)