Skip to content

Commit 919a845

Browse files
authored
fix: set --gtk-version=3 on linux COMPASS-9437 (#6991)
set --gtk-version=3 on linux
1 parent 551cea8 commit 919a845

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/compass/src/main/application.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ class CompassApplication {
205205
// For Linux users with drivers that are avoided by Chromium we disable the
206206
// GPU check to attempt to bypass the disabled WebGL settings.
207207
app.commandLine.appendSwitch('ignore-gpu-blacklist', 'true');
208+
209+
if (process.platform === 'linux') {
210+
// Force GTK 3 on Linux (Workaround for https://github.com/electron/electron/issues/46538)
211+
app.commandLine.appendSwitch('gtk-version', '3');
212+
}
208213
}
209214

210215
private static setupAutoUpdate(): void {

0 commit comments

Comments
 (0)