Add wayland specific patches

This commit is contained in:
smartfrigde 2022-04-22 20:30:09 +02:00
parent 41933e3c4f
commit 3e8526f0f7
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ 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("enable-features=UseOzonePlatform");
app.commandLine.appendSwitch("ozone-platform=wayland");
}
}
checkIfConfigExists();
app.whenReady().then(async () => {