From 05d117f374c467cfedc7380f5e3c0b2e1262efa1 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sat, 14 Jun 2025 19:45:32 -0400 Subject: [PATCH] linux build: add gtk version flag to fix incompatibility, fixes #430 (#436) --- src/electron-replay-app.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/electron-replay-app.ts b/src/electron-replay-app.ts index 9687f17..4299626 100644 --- a/src/electron-replay-app.ts +++ b/src/electron-replay-app.ts @@ -104,6 +104,13 @@ class ElectronReplayApp { console.log("app data", app.getPath("appData")); console.log("user data", app.getPath("userData")); + // possible workaround for GTK issue on Linux + // https://github.com/webrecorder/replayweb.page/issues/430 + // https://github.com/electron/electron/issues/46538#issuecomment-2808806722 + if (process.env.APPIMAGE) { + app.commandLine.appendSwitch("--gtk-version", "3"); + } + if (this.profileName) { app.setPath( "userData",