summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzxp198210052023-07-17 13:54:18 +0800
committerzxp198210052023-07-17 13:54:18 +0800
commitec07f53b1200381e92be69aadc91acc4a098a2a8 (patch)
tree7cbf0569675071ccb5b7ee21ad2e4437a3dd7fc9
parentcea2b014b670fe6b246dd1ab905e90baede1e34e (diff)
downloadaur-ec07f53b1200381e92be69aadc91acc4a098a2a8.tar.gz
update to 23.03.3
-rw-r--r--backend-ai-desktop.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/backend-ai-desktop.sh b/backend-ai-desktop.sh
index 71a54d138701..16be6221816b 100644
--- a/backend-ai-desktop.sh
+++ b/backend-ai-desktop.sh
@@ -1,6 +1,8 @@
#!/bin/bash
+_ELECTRON=/usr/bin/electron25
+_ASAR="/opt/backend-ai-desktop/app.asar"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
- exec electron /opt/backend-ai-desktop/app.asar "$@"
+ exec ${_ELECTRON} ${_ASAR} "$@"
else
- exec electron --no-sandbox /opt/backend-ai-desktop/app.asar "$@"
+ exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
fi \ No newline at end of file