Merge branch 'dev' of git-a:ArmCord/ArmCord into dev

This commit is contained in:
Alyxia Sother 2022-04-22 22:21:36 +02:00
commit a69e617660
No known key found for this signature in database
GPG key ID: 355968D14144B739

View file

@ -12,6 +12,17 @@ export var settings: any;
export var customTitlebar: boolean; export var customTitlebar: boolean;
export var tabs: 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(); checkIfConfigExists();
app.whenReady().then(async () => { app.whenReady().then(async () => {