summarylogtreecommitdiffstats
path: root/calmly-writer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'calmly-writer.sh')
-rw-r--r--calmly-writer.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/calmly-writer.sh b/calmly-writer.sh
index 43400f5ed0fb..006dab2a7a6f 100644
--- a/calmly-writer.sh
+++ b/calmly-writer.sh
@@ -1,6 +1,9 @@
-#!/bin/bash
+#!/bin/sh
_ELECTRON=/usr/bin/electron24
-_ASAR="/opt/calmly-writer/calmly-writer.asar"
+APPDIR="/usr/lib/calmly-writer"
+export PATH="${APPDIR}:${PATH}"
+export LD_LIBRARY_PATH="${APPDIR}/swiftshader:${LD_LIBRARY_PATH}"
+_ASAR="${APPDIR}/app.asar"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
exec ${_ELECTRON} ${_ASAR} "$@"
else