summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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