Make window decorations work on Gnome Wayland

This commit is contained in:
smartfrigde 2022-04-22 20:39:00 +02:00
parent 3e8526f0f7
commit 4c8cd2bf57
1 changed files with 5 additions and 1 deletions

View File

@ -15,8 +15,12 @@ export var tabs: boolean;
if (process.platform == "linux") {
if (process.env.$XDG_SESSION_TYPE == "wayland") {
console.log("Wayland specific patches applied.")
app.commandLine.appendSwitch("enable-features=UseOzonePlatform");
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();