summarylogtreecommitdiffstats
path: root/leafview.sh
diff options
context:
space:
mode:
Diffstat (limited to 'leafview.sh')
-rw-r--r--leafview.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/leafview.sh b/leafview.sh
index d141c2f19800..b0b8a55c0333 100644
--- a/leafview.sh
+++ b/leafview.sh
@@ -1,6 +1,9 @@
#!/bin/bash
_ELECTRON=/usr/bin/electron27
-_ASAR="/opt/leafview/resources/app.asar"
+APPDIR="/usr/lib/leafview"
+export PATH="${APPDIR}:${PATH}"
+#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} "$@"
else