diff options
author | zxp19821005 | 2023-10-31 05:44:52 +0800 |
---|---|---|
committer | zxp19821005 | 2023-10-31 05:44:52 +0800 |
commit | 1d7ceacc8751481777699d398957ef9e9b88605d (patch) | |
tree | a1d37a7956c2c6676b20ee959f541e4fbd625ac0 /lvce.sh | |
parent | 452fd417bca9518a1edda5ed156a368cf411a04a (diff) | |
download | aur-1d7ceacc8751481777699d398957ef9e9b88605d.tar.gz |
update to 0.19.2
Diffstat (limited to 'lvce.sh')
-rw-r--r-- | lvce.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lvce.sh b/lvce.sh new file mode 100644 index 000000000000..039366683c6e --- /dev/null +++ b/lvce.sh @@ -0,0 +1,10 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron27 +APPDIR="/opt/lvce" +export PATH="${APPDIR}:${PATH}" +_ASAR="${APPDIR}/resources/app" +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec ${_ELECTRON} ${_ASAR} "$@" +else + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" +fi
\ No newline at end of file |