Skip to content

Commit 18a1554

Browse files
committed
fixes checking display variables
1 parent 037bda6 commit 18a1554

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clientonly/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@
8585
.then(function (configReturn) {
8686
// check environment for DISPLAY or WAYLAND_DISPLAY
8787
const elecParams = ["js/electron.js"];
88-
if (process.env.WAYLAND_DISPLAY !== "") {
88+
if (process.env.WAYLAND_DISPLAY) {
8989
console.log(`Client: Using WAYLAND_DISPLAY=${process.env.WAYLAND_DISPLAY}`);
9090
elecParams.push("--enable-features=UseOzonePlatform");
9191
elecParams.push("--ozone-platform=wayland");
92-
} else if (process.env.DISPLAY !== "") {
92+
} else if (process.env.DISPLAY) {
9393
console.log(`Client: Using DISPLAY=${process.env.DISPLAY}`);
9494
} else {
9595
fail("Error: Requires environment variable WAYLAND_DISPLAY or DISPLAY, none is provided.");

tests/electron/helpers/global-setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exports.startApplication = async (configFilename, systemDate = null, electronPar
1414
process.env.mmTestMode = "true";
1515

1616
// check environment for DISPLAY or WAYLAND_DISPLAY
17-
if (process.env.WAYLAND_DISPLAY !== "") {
17+
if (process.env.WAYLAND_DISPLAY) {
1818
electronParams.unshift("js/electron.js", "--enable-features=UseOzonePlatform", "--ozone-platform=wayland");
1919
} else {
2020
electronParams.unshift("js/electron.js");

0 commit comments

Comments
 (0)