Use script for start MagicMirror

This commit is contained in:
Rodrigo Ramírez Norambuena
2017-01-24 02:12:36 -03:00
parent 57ea2ac039
commit 566ea9a110
3 changed files with 6 additions and 1 deletions

4
run-start.sh Normal file
View File

@@ -0,0 +1,4 @@
if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
export DISPLAY=:0 # Set by defaul display
fi
electron js/electron.js