mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Fix environment access for Linux Wayland patches (#304)
This commit is contained in:
parent
a725512e35
commit
969d1c3662
1 changed files with 2 additions and 2 deletions
|
@ -28,10 +28,10 @@ if (!app.requestSingleInstanceLock()) {
|
||||||
crashReporter.start({uploadToServer: false, extra: {settingsFile}});
|
crashReporter.start({uploadToServer: false, extra: {settingsFile}});
|
||||||
|
|
||||||
if (process.platform == "linux") {
|
if (process.platform == "linux") {
|
||||||
if (process.env.$XDG_SESSION_TYPE == "wayland") {
|
if (process.env.XDG_SESSION_TYPE == "wayland") {
|
||||||
console.log("Wayland specific patches applied.");
|
console.log("Wayland specific patches applied.");
|
||||||
app.commandLine.appendSwitch("ozone-platform=wayland");
|
app.commandLine.appendSwitch("ozone-platform=wayland");
|
||||||
if (process.env.$XDG_CURRENT_DESKTOP == "GNOME") {
|
if (process.env.XDG_CURRENT_DESKTOP == "GNOME") {
|
||||||
app.commandLine.appendSwitch("enable-features=UseOzonePlatform,WaylandWindowDecorations");
|
app.commandLine.appendSwitch("enable-features=UseOzonePlatform,WaylandWindowDecorations");
|
||||||
} else {
|
} else {
|
||||||
app.commandLine.appendSwitch("enable-features=UseOzonePlatform");
|
app.commandLine.appendSwitch("enable-features=UseOzonePlatform");
|
||||||
|
|
Loading…
Reference in a new issue