Set default DISPLAY in package.json.

This commit is contained in:
Michael Teeuw
2020-02-01 15:02:47 +01:00
parent e2d4a0fde8
commit 8ef8388c32
2 changed files with 1 additions and 6 deletions

View File

@@ -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");