Skip to content

Commit 13a3a74

Browse files
committed
Make sure to use gtk version 3 on Linux
https://www.electronjs.org/docs/latest/breaking-changes#changed-gtk-4-is-default-when-running-gnome Signed-off-by: Jan Dubois <jan.dubois@suse.com> (cherry picked from commit 9557453)
1 parent 8cef377 commit 13a3a74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

background.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ import * as window from '@pkg/window';
5656
import { closeDashboard, openDashboard } from '@pkg/window/dashboard';
5757
import { openPreferences, preferencesSetDirtyFlag } from '@pkg/window/preferences';
5858

59+
// https://www.electronjs.org/docs/latest/breaking-changes#changed-gtk-4-is-default-when-running-gnome
60+
if (process.platform === 'linux') {
61+
Electron.app.commandLine.appendSwitch('gtk-version', '3');
62+
}
63+
5964
Electron.app.setPath('userData', path.join(paths.appHome, 'electron'));
6065
Electron.app.setPath('cache', paths.cache);
6166
Electron.app.setAppLogsPath(paths.logs);

0 commit comments

Comments
 (0)