summarylogtreecommitdiffstats
path: root/masscode.sh
diff options
context:
space:
mode:
Diffstat (limited to 'masscode.sh')
-rw-r--r--masscode.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/masscode.sh b/masscode.sh
index 1457e36cd80c..cdddcba7a48c 100644
--- a/masscode.sh
+++ b/masscode.sh
@@ -1,8 +1,12 @@
#!/bin/bash
-_ELECTRON=/usr/bin/electron16
-_ASAR="/opt/masscode/resources/app.asar"
+APPDIR="/usr/lib/masscode"
+export PATH="${APPDIR}:${PATH}"
+export ELECTRON_IS_DEV=0
+_ASAR="${APPDIR}/app.asar"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
- exec ${_ELECTRON} ${_ASAR} "$@"
+ cd "$APPDIR"
+ exec electron@electronversion@ ${_ASAR} "$@"
else
- exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
+ cd "$APPDIR"
+ exec electron@electronversion@ ${_ASAR} --no-sandbox "$@"
fi \ No newline at end of file