Skip to content

Commit 552ea03

Browse files
authored
Merge pull request MagicMirrorOrg#652 from roramirez/electron-issues
Electron issues
2 parents 835f20f + ff6bd91 commit 552ea03

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2626
- Option to use RegExp in Calendar's titleReplace.
2727
- Hungarian Translation.
2828
- Icelandic Translation.
29+
- Add use a script to prevent when is run by SSH session set DISPLAY enviroment.
2930
- Enable ability to set configuration file by the enviroment variable called MM_CONFIG_FILE.
3031

3132
### Fixed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A modular interface for smart mirrors.",
55
"main": "js/electron.js",
66
"scripts": {
7-
"start": "electron js/electron.js",
7+
"start": "sh run-start.sh",
88
"postinstall": "sh installers/postinstall/postinstall.sh",
99
"test": "./node_modules/mocha/bin/mocha tests --recursive"
1010
},

Diff for: run-start.sh

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

0 commit comments

Comments
 (0)