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:
@@ -1,5 +1,10 @@
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
if (!process.env.DISPLAY) {
|
||||
console.log("DISPLAY environment variable not set. Using DISPLAY=:0");
|
||||
process.env.DISPLAY = ":0";
|
||||
}
|
||||
|
||||
"use strict";
|
||||
|
||||
const electron = require("electron");
|
||||
|
Reference in New Issue
Block a user