diff options
author | zxp19821005 | 2024-05-01 17:50:37 +0800 |
---|---|---|
committer | zxp19821005 | 2024-05-01 17:50:37 +0800 |
commit | 5e1f51ebc29e35f8fbfb798f0cd9bb4240c5a009 (patch) | |
tree | 0886c6503fed4a551f653be21e3bc1f47378e76e /chatall.sh | |
parent | 754a9ad656c820420a36a10988875ae872816ed1 (diff) | |
download | aur-5e1f51ebc29e35f8fbfb798f0cd9bb4240c5a009.tar.gz |
update to 1.78.103.r0.g0a9a37d
Diffstat (limited to 'chatall.sh')
-rw-r--r-- | chatall.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chatall.sh b/chatall.sh index 7ddcaab8d734..842c77e19b1d 100644 --- a/chatall.sh +++ b/chatall.sh @@ -8,9 +8,14 @@ export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH} export ELECTRON_IS_DEV=0 export ELECTRON_FORCE_IS_PACKAGED=true export NODE_ENV=production +export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +_FLAGS_FILE="${XDG_CONFIG_HOME}/@appname@-flags.conf" +if [ -r "${_FLAGS_FILE}" ]; then + _USER_FLAGS="$(cat "${_FLAGS_FILE}")" +fi cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "${_USER_FLAGS}" "$@" || exit $? else - exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "${_USER_FLAGS}" "$@" || exit $? fi
\ No newline at end of file |