diff options
author | zxp19821005 | 2023-08-02 15:43:00 +0800 |
---|---|---|
committer | zxp19821005 | 2023-08-02 15:43:00 +0800 |
commit | aad4f56af1af57a453d26ce7d4a9d376822e3f06 (patch) | |
tree | 8ff50c89490a6e4e18538ba668e5f6d803fb9af8 /borg-explorer.sh | |
parent | 59ac5b201eed12d5dfe6c3fc52865ef89c8b7038 (diff) | |
download | aur-aad4f56af1af57a453d26ce7d4a9d376822e3f06.tar.gz |
fix errors
Diffstat (limited to 'borg-explorer.sh')
-rw-r--r-- | borg-explorer.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/borg-explorer.sh b/borg-explorer.sh index 2e3a895d6a10..89163565dbc2 100644 --- a/borg-explorer.sh +++ b/borg-explorer.sh @@ -1,6 +1,8 @@ #!/bin/bash +_ELECTRON=/usr/bin/electron22 +_ASAR="/opt/borg-explorer/borg-explorer.asar" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron /opt/borg-explorer/borg-explorer.asar "$@" + exec ${_ELECTRON} ${_ASAR} "$@" else - exec electron --no-sandbox /opt/borg-explorer/borg-explorer.asar "$@" + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" fi
\ No newline at end of file |