From 50051e57a7d1c6b2cc09584290c6b365dd233524 Mon Sep 17 00:00:00 2001 From: Justin Baur <19896123+justindbaur@users.noreply.github.com> Date: Fri, 13 Jun 2025 15:16:47 -0400 Subject: [PATCH] Implement workaround for breaking change in electron 36 (#15189) --- apps/desktop/src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index 20c632ec4ac..5e0ea7f9fac 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -96,6 +96,11 @@ export class Main { appDataPath = path.join(process.env.SNAP_USER_DATA, "appdata"); } + // Workaround for bug described here: https://github.com/electron/electron/issues/46538 + if (process.platform === "linux") { + app.commandLine.appendSwitch("gtk-version", "3"); + } + app.on("ready", () => { // on ready stuff... });