summarylogtreecommitdiffstats
path: root/altus.sh
diff options
context:
space:
mode:
authorzxp198210052023-08-01 09:19:52 +0800
committerzxp198210052023-08-01 09:19:52 +0800
commit8c38a4cff9e7c63aea40d47354ebf3fbfe7f5d93 (patch)
treee2974db153773e9e06069bbc77126cfcd325157f /altus.sh
parent8cc284f482d2afc88467ec4c4d45ccae8c2491c7 (diff)
downloadaur-8c38a4cff9e7c63aea40d47354ebf3fbfe7f5d93.tar.gz
fix errors
Diffstat (limited to 'altus.sh')
-rw-r--r--altus.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/altus.sh b/altus.sh
index 5bce6226b430..f681984e1ca8 100644
--- a/altus.sh
+++ b/altus.sh
@@ -1,6 +1,8 @@
#!/bin/bash
+_ELECTRON=/usr/bin/electron22
+_ASAR="/opt/altus/altus.asar"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
- exec electron /opt/altus/altus.asar "$@"
+ exec ${_ELECTRON} ${_ASAR} "$@"
else
- exec electron --no-sandbox /opt/altus/altus.asar "$@"
+ exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
fi \ No newline at end of file