check cyrillic

This commit is contained in:
Mikhail Tergoev
2024-02-04 15:10:18 +03:00
parent 7fd54ed79e
commit 087530afdb
5 changed files with 17 additions and 0 deletions

View File

@ -32,6 +32,14 @@ fi
[[ "$MISSING_DESKTOP_FILE" == 1 ]] && portwine_missing_shortcut
if [[ -f "$portwine_exe" ]] \
&& [[ "${WARN_CYRILLIC_IN_PATH}" != 1 ]] \
&& echo "${portwine_exe}" | grep -e $'[\u0430-\u044F\u0410-\u042F]' &>/dev/null
then
zenity_info "$loc_warn_cyrillic_in_path"
export WARN_CYRILLIC_IN_PATH="1"
fi
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_main_gui_size" ]] && [[ ! -z "$(cat ${PORT_WINE_TMP_PATH}/tmp_main_gui_size)" ]] ; then
export PW_MAIN_SIZE_W="$(cat ${PORT_WINE_TMP_PATH}/tmp_main_gui_size | awk '{print $1}')"
export PW_MAIN_SIZE_H="$(cat ${PORT_WINE_TMP_PATH}/tmp_main_gui_size | awk '{print $2}')"