summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzxp198210052023-07-06 09:53:06 +0800
committerzxp198210052023-07-06 09:53:06 +0800
commitf5900658a161206db5c0e469fedbfdf9aa4eaa9d (patch)
treeff298983d00fd2d24fa6e9a16099756689979f16
parent4b1a61c635423936d357093974e78fcd7824c214 (diff)
downloadaur-f5900658a161206db5c0e469fedbfdf9aa4eaa9d.tar.gz
first release
-rw-r--r--backend-ai-desktop.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend-ai-desktop.sh b/backend-ai-desktop.sh
new file mode 100644
index 000000000000..71a54d138701
--- /dev/null
+++ b/backend-ai-desktop.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
+ exec electron /opt/backend-ai-desktop/app.asar "$@"
+else
+ exec electron --no-sandbox /opt/backend-ai-desktop/app.asar "$@"
+fi \ No newline at end of file