diff options
author | zxp19821005 | 2024-05-06 09:44:45 +0800 |
---|---|---|
committer | zxp19821005 | 2024-05-06 09:44:45 +0800 |
commit | eb41e30eea3acb7e7ba3e07f66a679091d8c12cb (patch) | |
tree | c803837c1af3f1a79eaa17ab3c6e403553e2c3e7 /mqtt5-explorer.sh | |
parent | e326a6085a135e38bfa03f8ec46fb02801460f36 (diff) | |
download | aur-mqtt5-explorer-bin.tar.gz |
update to 1.14.0
Diffstat (limited to 'mqtt5-explorer.sh')
-rw-r--r-- | mqtt5-explorer.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mqtt5-explorer.sh b/mqtt5-explorer.sh index 7ddcaab8d734..79987c30c522 100644 --- a/mqtt5-explorer.sh +++ b/mqtt5-explorer.sh @@ -7,10 +7,17 @@ export PATH="${_APPDIR}:${PATH}" export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" export ELECTRON_IS_DEV=0 export ELECTRON_FORCE_IS_PACKAGED=true +export ELECTRON_RUN_AS_NODE=0 +export ELECTRON_DISABLE_SECURITY_WARNINGS=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 |