summarylogtreecommitdiffstats
path: root/buttercup-desktop.sh
diff options
context:
space:
mode:
authorzxp198210052023-11-06 20:03:04 +0800
committerzxp198210052023-11-06 20:03:04 +0800
commit1e1e860c1cb1437e279bcd93eecc07a317051e44 (patch)
treeb60b18eb261c1547a80b30b7ff7657d2c00e60a8 /buttercup-desktop.sh
parent121124f0f8efa9809d8566dca177d7f3ed00bac2 (diff)
downloadaur-1e1e860c1cb1.tar.gz
update to 2.21.0
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