mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-05 15:17:49 +00:00
Set default DISPLAY in package.json.
This commit is contained in:
parent
e2d4a0fde8
commit
8ef8388c32
@ -1,10 +1,5 @@
|
||||
/* 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");
|
||||
|
@ -4,7 +4,7 @@
|
||||
"description": "The open source modular smart mirror platform.",
|
||||
"main": "js/electron.js",
|
||||
"scripts": {
|
||||
"start": "./node_modules/.bin/electron js/electron.js",
|
||||
"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
|
||||
"server": "node ./serveronly",
|
||||
"install": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error",
|
||||
"install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error",
|
||||
|
Loading…
x
Reference in New Issue
Block a user