diff options
author | zxp19821005 | 2024-02-02 18:55:42 +0800 |
---|---|---|
committer | zxp19821005 | 2024-02-02 18:55:42 +0800 |
commit | 8542aa48a743a461c7b1a880eca4e92310a5aa30 (patch) | |
tree | b6dd4911c14a2a58ffad629bee48ab49977ef030 /escrcpy.sh | |
parent | e19f92c81293e6ae01f4d02e1211a6f4259fdbe8 (diff) | |
download | aur-8542aa48a743a461c7b1a880eca4e92310a5aa30.tar.gz |
fix errors
Diffstat (limited to 'escrcpy.sh')
-rw-r--r-- | escrcpy.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/escrcpy.sh b/escrcpy.sh index 0d20cddc70ca..f9ced1432cfc 100644 --- a/escrcpy.sh +++ b/escrcpy.sh @@ -1,14 +1,14 @@ #!/bin/sh set -e _APPDIR="/usr/lib/@appname@" -_ASAR="${_APPDIR}/@appasar@" +_RUNNAME="${_APPDIR}/@runname@" export PATH="${_APPDIR}:${PATH}" export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" export ELECTRON_IS_DEV=0 export NODE_ENV=production cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron@electronversion@ "${_ASAR}" "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $? else - exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $? fi
\ No newline at end of file |