diff options
author | zxp19821005 | 2024-03-21 15:59:28 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-21 15:59:28 +0800 |
commit | be9d52b39d97c9848ffacd9760182d4c06e866af (patch) | |
tree | fb467fb04299bb85c7d684af022de70197e761ac /listen1-desktop.sh | |
parent | 25323509fa4e940c6f655db061be945ea09cc81e (diff) | |
download | aur-be9d52b39d97c9848ffacd9760182d4c06e866af.tar.gz |
fix errors
Diffstat (limited to 'listen1-desktop.sh')
-rw-r--r-- | listen1-desktop.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/listen1-desktop.sh b/listen1-desktop.sh index 86cb3dc6a9bf..7ddcaab8d734 100644 --- a/listen1-desktop.sh +++ b/listen1-desktop.sh @@ -2,6 +2,7 @@ set -e _APPDIR="/usr/lib/@appname@" _RUNNAME="${_APPDIR}/@runname@" +_OPTIONS="@options@" export PATH="${_APPDIR}:${PATH}" export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" export ELECTRON_IS_DEV=0 @@ -9,7 +10,7 @@ export ELECTRON_FORCE_IS_PACKAGED=true export NODE_ENV=production cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "$@" || exit $? else - exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "$@" || exit $? fi
\ No newline at end of file |