mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-22 13:09:26 +00:00
electron tests (#3684)
- fix setup to run with xserver and labwc - remove electronParams from calendar_spec.js (forgotten in https://github.com/MagicMirrorOrg/MagicMirror/pull/3680) fixes [running tests locally without labwc installed](https://github.com/MagicMirrorOrg/MagicMirror/pull/3681#issuecomment-2571736233) follow up to https://github.com/MagicMirrorOrg/MagicMirror/pull/3680
This commit is contained in:
@@ -85,11 +85,11 @@
|
||||
.then(function (configReturn) {
|
||||
// check environment for DISPLAY or WAYLAND_DISPLAY
|
||||
const elecParams = ["js/electron.js"];
|
||||
if (process.env.WAYLAND_DISPLAY !== "") {
|
||||
if (process.env.WAYLAND_DISPLAY) {
|
||||
console.log(`Client: Using WAYLAND_DISPLAY=${process.env.WAYLAND_DISPLAY}`);
|
||||
elecParams.push("--enable-features=UseOzonePlatform");
|
||||
elecParams.push("--ozone-platform=wayland");
|
||||
} else if (process.env.DISPLAY !== "") {
|
||||
} else if (process.env.DISPLAY) {
|
||||
console.log(`Client: Using DISPLAY=${process.env.DISPLAY}`);
|
||||
} else {
|
||||
fail("Error: Requires environment variable WAYLAND_DISPLAY or DISPLAY, none is provided.");
|
||||
|
Reference in New Issue
Block a user