diff options
author | zxp19821005 | 2023-08-01 09:19:52 +0800 |
---|---|---|
committer | zxp19821005 | 2023-08-01 09:19:52 +0800 |
commit | 8c38a4cff9e7c63aea40d47354ebf3fbfe7f5d93 (patch) | |
tree | e2974db153773e9e06069bbc77126cfcd325157f /altus.sh | |
parent | 8cc284f482d2afc88467ec4c4d45ccae8c2491c7 (diff) | |
download | aur-8c38a4cff9e7c63aea40d47354ebf3fbfe7f5d93.tar.gz |
fix errors
Diffstat (limited to 'altus.sh')
-rw-r--r-- | altus.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |