summarylogtreecommitdiffstats
path: root/fairshare.sh
diff options
context:
space:
mode:
authorzxp198210052023-08-03 16:10:25 +0800
committerzxp198210052023-08-03 16:10:25 +0800
commit98db7b7eb924f5971fba46698931b09b665e9c57 (patch)
tree6fb9c47aa55cfdb19c0d3d92752bc7538417bd5b /fairshare.sh
parent92f5c16c197e0b3e94c808d222a7083795caf97f (diff)
downloadaur-98db7b7eb924f5971fba46698931b09b665e9c57.tar.gz
fix errors
Diffstat (limited to 'fairshare.sh')
-rw-r--r--fairshare.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/fairshare.sh b/fairshare.sh
index 59ca250af2f3..1d5ec1a0ff73 100644
--- a/fairshare.sh
+++ b/fairshare.sh
@@ -1,6 +1,8 @@
#!/bin/bash
+_ELECTRON=/usr/bin/electron25
+_ASAR="/opt/fairshare/app.asar"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
- exec electron25 /opt/fairshare/app.asar "$@"
+ exec ${_ELECTRON} ${_ASAR} "$@"
else
- exec electron25 --no-sandbox /opt/fairshare/app.asar "$@"
+ exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
fi \ No newline at end of file