summarylogtreecommitdiffstats
path: root/rebaslight.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rebaslight.sh')
-rw-r--r--rebaslight.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/rebaslight.sh b/rebaslight.sh
new file mode 100644
index 000000000000..0242c778706e
--- /dev/null
+++ b/rebaslight.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron25
+APPDIR="/usr/lib/rebaslight"
+export PATH="${APPDIR}:${PATH}"
+_ASAR="${APPDIR}/app.asar"
+if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
+ exec ${_ELECTRON} ${_ASAR} "$@"
+else
+ exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
+fi \ No newline at end of file