summarylogtreecommitdiffstats
path: root/enotebook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'enotebook.sh')
-rw-r--r--enotebook.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/enotebook.sh b/enotebook.sh
new file mode 100644
index 000000000000..af036d4a7adf
--- /dev/null
+++ b/enotebook.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron16
+APPDIR="/usr/lib/enotebook"
+export PATH="${APPDIR}:${APPDIR}/usr/sbin:${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