fix: set default language

This commit is contained in:
Richard Ramos 2021-02-18 16:42:33 -04:00 committed by Iuri Matias
parent b1b32d354d
commit 3e2b5360be
1 changed files with 8 additions and 0 deletions

8
AppRun
View File

@ -3,4 +3,12 @@ APPDIR="$(dirname "$(readlink -f "${0}")")"
export LD_LIBRARY_PATH="${APPDIR}/usr/lib/:${LD_LIBRARY_PATH}" export LD_LIBRARY_PATH="${APPDIR}/usr/lib/:${LD_LIBRARY_PATH}"
export QT_QPA_PLATFORM="xcb" export QT_QPA_PLATFORM="xcb"
DEFAULT_LANG=en_US.UTF-8
if [[ "$LANG" == "C.UTF-8" ]]
then
export LANG=$DEFAULT_LANG
else
export LANG="${VARIABLE:=$DEFAULT_LANG}"
fi
exec "${APPDIR}/usr/bin/nim_status_client" "$@" exec "${APPDIR}/usr/bin/nim_status_client" "$@"