summarylogtreecommitdiffstats
path: root/borg-explorer.sh
diff options
context:
space:
mode:
authorzxp198210052023-08-02 15:43:00 +0800
committerzxp198210052023-08-02 15:43:00 +0800
commitaad4f56af1af57a453d26ce7d4a9d376822e3f06 (patch)
tree8ff50c89490a6e4e18538ba668e5f6d803fb9af8 /borg-explorer.sh
parent59ac5b201eed12d5dfe6c3fc52865ef89c8b7038 (diff)
downloadaur-aad4f56af1af57a453d26ce7d4a9d376822e3f06.tar.gz
fix errors
Diffstat (limited to 'borg-explorer.sh')
-rw-r--r--borg-explorer.sh6
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