Compare commits

..

2 commits

Author SHA1 Message Date
smartfrigde
4c8cd2bf57 Make window decorations work on Gnome Wayland 2022-04-22 20:39:00 +02:00
smartfrigde
3e8526f0f7 Add wayland specific patches 2022-04-22 20:30:09 +02:00

View file

@ -12,6 +12,17 @@ export var settings: any;
export var customTitlebar: boolean;
export var tabs: boolean;
if (process.platform == "linux") {
if (process.env.$XDG_SESSION_TYPE == "wayland") {
console.log("Wayland specific patches applied.")
app.commandLine.appendSwitch("ozone-platform=wayland");
if (process.env.$XDG_CURRENT_DESKTOP == "GNOME") {
app.commandLine.appendSwitch("enable-features=UseOzonePlatform,WaylandWindowDecorations");
} else {
app.commandLine.appendSwitch("enable-features=UseOzonePlatform");
}
}
}
checkIfConfigExists();
app.whenReady().then(async () => {