mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Compare commits
2 commits
41933e3c4f
...
4c8cd2bf57
Author | SHA1 | Date | |
---|---|---|---|
|
4c8cd2bf57 | ||
|
3e8526f0f7 |
1 changed files with 11 additions and 0 deletions
11
src/main.ts
11
src/main.ts
|
@ -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 () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue