mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Move DISPLAY default to electron script.
This commit is contained in:
@@ -23,11 +23,6 @@ console.log("Starting MagicMirror: v" + global.version);
|
|||||||
// global absolute root path
|
// global absolute root path
|
||||||
global.root_path = path.resolve(__dirname + "/../");
|
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) {
|
if (process.env.MM_CONFIG_FILE) {
|
||||||
global.configuration_file = process.env.MM_CONFIG_FILE;
|
global.configuration_file = process.env.MM_CONFIG_FILE;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,10 @@
|
|||||||
/* jshint esversion: 6 */
|
/* jshint esversion: 6 */
|
||||||
|
|
||||||
|
if (!process.env.DISPLAY) {
|
||||||
|
console.log("DISPLAY environment variable not set. Using DISPLAY=:0");
|
||||||
|
process.env.DISPLAY = ":0";
|
||||||
|
}
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const electron = require("electron");
|
const electron = require("electron");
|
||||||
|
Reference in New Issue
Block a user