summarylogtreecommitdiffstats
path: root/buttercup-desktop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'buttercup-desktop.sh')
-rw-r--r--buttercup-desktop.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/buttercup-desktop.sh b/buttercup-desktop.sh
index d9ecc9c9e8fc..64ab44504a03 100644
--- a/buttercup-desktop.sh
+++ b/buttercup-desktop.sh
@@ -1,6 +1,9 @@
#!/bin/bash
_ELECTRON=/usr/bin/electron22
-_ASAR="/opt/buttercup-desktop/buttercup-desktop.asar"
+APPDIR="/usr/lib/buttercup-desktop"
+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