diff options
Diffstat (limited to 'boats-animator.sh')
-rw-r--r-- | boats-animator.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/boats-animator.sh b/boats-animator.sh index 255416a9fc84..4e7bede5245c 100644 --- a/boats-animator.sh +++ b/boats-animator.sh @@ -1,6 +1,8 @@ #!/bin/bash +_ELECTRON=/usr/bin/electron22 +_ASAR="/opt/boats-animator/app.asar" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron /opt/boats-animator/app.asar "$@" + exec ${_ELECTRON} ${_ASAR} "$@" else - exec electron --no-sandbox /opt/boats-animator/app.asar "$@" + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" fi
\ No newline at end of file |