Skip to content

Commit 05d117f

Browse files
authored
linux build: add gtk version flag to fix incompatibility, fixes #430 (#436)
1 parent 6ee91ad commit 05d117f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/electron-replay-app.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ class ElectronReplayApp {
104104
console.log("app data", app.getPath("appData"));
105105
console.log("user data", app.getPath("userData"));
106106

107+
// possible workaround for GTK issue on Linux
108+
// https://github.com/webrecorder/replayweb.page/issues/430
109+
// https://github.com/electron/electron/issues/46538#issuecomment-2808806722
110+
if (process.env.APPIMAGE) {
111+
app.commandLine.appendSwitch("--gtk-version", "3");
112+
}
113+
107114
if (this.profileName) {
108115
app.setPath(
109116
"userData",

0 commit comments

Comments
 (0)