Move DISPLAY default to electron script.

This commit is contained in:
Michael Teeuw 2020-02-01 13:59:13 +01:00
parent 09c1ea992c
commit 21dbaa1a03
2 changed files with 5 additions and 5 deletions

View file

@ -23,11 +23,6 @@ console.log("Starting MagicMirror: v" + global.version);
// global absolute root path
global.root_path = path.resolve(__dirname + "/../");
if (!process.env.DISPLAY) {
console.log("DISPLAY environment variable not set. Using DISPLAY=:0");
process.env.DISPLAY = ":0";
}
if (process.env.MM_CONFIG_FILE) {
global.configuration_file = process.env.MM_CONFIG_FILE;
}