mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 17:44:52 -04:00
Move DISPLAY default to electron script.
This commit is contained in:
parent
09c1ea992c
commit
21dbaa1a03
2 changed files with 5 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue