summarylogtreecommitdiffstats
path: root/buttercup-desktop.sh
diff options
context:
space:
mode:
authorzxp198210052023-11-29 16:18:26 +0800
committerzxp198210052023-11-29 16:18:26 +0800
commiteb193fff2a325f53112c27a69f516f0e93d391aa (patch)
tree22627887e85c8ad4048bf1f03bfdc9681e6bb26b /buttercup-desktop.sh
parentcb26e16343cc21e48b7be653b3ad8bd52325f13f (diff)
downloadaur-eb193fff2a325f53112c27a69f516f0e93d391aa.tar.gz
update to 2.23.0
Diffstat (limited to 'buttercup-desktop.sh')
-rw-r--r--buttercup-desktop.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/buttercup-desktop.sh b/buttercup-desktop.sh
index 64ab44504a03..4c16b02bd56d 100644
--- a/buttercup-desktop.sh
+++ b/buttercup-desktop.sh
@@ -1,11 +1,13 @@
#!/bin/bash
-_ELECTRON=/usr/bin/electron22
APPDIR="/usr/lib/buttercup-desktop"
+export ELECTRON_IS_DEV=0
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} "$@"
+ cd $APPDIR
+ exec electron@electronversion@ ${_ASAR} "$@"
else
- exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
+ cd $APPDIR
+ exec electron@electronversion@ --no-sandbox "$@"
fi \ No newline at end of file