summarylogtreecommitdiffstats
path: root/elephicon.sh
diff options
context:
space:
mode:
authorzxp198210052024-01-10 09:47:36 +0800
committerzxp198210052024-01-10 09:47:36 +0800
commit1ae061e5459ae117a6962f96ec004c3ba1c33111 (patch)
tree8e8117ec150eca719463bd3b5271d7fd60c1582c /elephicon.sh
parent77dd8b09ed02e7dfff1951b0e3a17838a16dfa37 (diff)
downloadaur-1ae061e5459ae117a6962f96ec004c3ba1c33111.tar.gz
update to 2.8.2
Diffstat (limited to 'elephicon.sh')
-rw-r--r--elephicon.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/elephicon.sh b/elephicon.sh
index c77c53567639..aacd8f895847 100644
--- a/elephicon.sh
+++ b/elephicon.sh
@@ -6,12 +6,10 @@ export PATH="${_APPDIR}:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}"
export ELECTRON_IS_DEV=0
export NODE_ENV=production
+cd "${_APPDIR}"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
- cd "${_APPDIR}"
exec electron@electronversion@ "${_ASAR}" "$@"
- exit
else
- cd "${_APPDIR}"
exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@"
- exit
-fi \ No newline at end of file
+fi
+exit \ No newline at end of file