summarylogtreecommitdiffstats
path: root/electronim.sh
diff options
context:
space:
mode:
Diffstat (limited to 'electronim.sh')
-rw-r--r--electronim.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/electronim.sh b/electronim.sh
index 5b003d276987..7edfae106714 100644
--- a/electronim.sh
+++ b/electronim.sh
@@ -1,10 +1,13 @@
#!/bin/bash
-_ELECTRON=/usr/bin/electron26
-APPDIR="/opt/electronim"
-export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}"
-_ASAR="${APPDIR}/resources/app.asar"
+APPDIR="/usr/lib/electronim"
+export PATH="${APPDIR}:${PATH}"
+export ELECTRON_IS_DEV=0
+export LD_LIBRARY_PATH="${APPDIR}/lib:${LD_LIBRARY_PATH}"
+_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