diff options
author | zxp19821005 | 2023-07-18 16:43:31 +0800 |
---|---|---|
committer | zxp19821005 | 2023-07-18 16:43:31 +0800 |
commit | ca2152d3a33c1b9756ef0b932c0a1a09a1e978b3 (patch) | |
tree | 6719014c781e113b561cd6d98eb316f80f079d42 /prepros.sh | |
parent | b648384800bdb6cd920f67fc0370ec8ca15c8637 (diff) | |
download | aur-ca2152d3a33c1b9756ef0b932c0a1a09a1e978b3.tar.gz |
update to 7.8.5
Diffstat (limited to 'prepros.sh')
-rw-r--r-- | prepros.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/prepros.sh b/prepros.sh new file mode 100644 index 000000000000..08c33cac67df --- /dev/null +++ b/prepros.sh @@ -0,0 +1,8 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron25 +_ASAR="/opt/prepros/app.asar" +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 |