diff options
author | zxp19821005 | 2023-07-17 13:54:18 +0800 |
---|---|---|
committer | zxp19821005 | 2023-07-17 13:54:18 +0800 |
commit | ec07f53b1200381e92be69aadc91acc4a098a2a8 (patch) | |
tree | 7cbf0569675071ccb5b7ee21ad2e4437a3dd7fc9 | |
parent | cea2b014b670fe6b246dd1ab905e90baede1e34e (diff) | |
download | aur-ec07f53b1200381e92be69aadc91acc4a098a2a8.tar.gz |
update to 23.03.3
-rw-r--r-- | backend-ai-desktop.sh | 6 |
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 |