diff options
author | zxp19821005 | 2024-03-14 17:53:50 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-14 17:53:50 +0800 |
commit | 221d53e8b03bf55bf35f2c6c5c4c9a762f7df31b (patch) | |
tree | b4ad9b63b7baa7a3445894f23b6e3c2cbf7f141a /thorium-reader.sh | |
parent | aed9d1e97e8312b299d8ff0ea653dc0b83869cd6 (diff) | |
download | packages-221d53e8b03bf55bf35f2c6c5c4c9a762f7df31b.tar.gz packages-221d53e8b03bf55bf35f2c6c5c4c9a762f7df31b.tar.bz2 packages-221d53e8b03bf55bf35f2c6c5c4c9a762f7df31b.zip |
fix errors
Diffstat (limited to 'thorium-reader.sh')
-rw-r--r-- | thorium-reader.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/thorium-reader.sh b/thorium-reader.sh index f9ced14..7ddcaab 100644 --- a/thorium-reader.sh +++ b/thorium-reader.sh | |||
@@ -1,14 +1,16 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/bash |
2 | set -e | 2 | set -e |
3 | _APPDIR="/usr/lib/@appname@" | 3 | _APPDIR="/usr/lib/@appname@" |
4 | _RUNNAME="${_APPDIR}/@runname@" | 4 | _RUNNAME="${_APPDIR}/@runname@" |
5 | _OPTIONS="@options@" | ||
5 | export PATH="${_APPDIR}:${PATH}" | 6 | export PATH="${_APPDIR}:${PATH}" |
6 | export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" | 7 | export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" |
7 | export ELECTRON_IS_DEV=0 | 8 | export ELECTRON_IS_DEV=0 |
9 | export ELECTRON_FORCE_IS_PACKAGED=true | ||
8 | export NODE_ENV=production | 10 | export NODE_ENV=production |
9 | cd "${_APPDIR}" | 11 | cd "${_APPDIR}" |
10 | if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then | 12 | if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then |
11 | exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $? | 13 | exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "$@" || exit $? |
12 | else | 14 | else |
13 | exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $? | 15 | exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "$@" || exit $? |
14 | fi \ No newline at end of file | 16 | fi \ No newline at end of file |