ensure case insensitivity for the LANG vars

Change-Id: I895fe850b09e8afcbd102210893b4d7caa8604b4
parent 0daf891d
......@@ -9,9 +9,10 @@
####################################################################################
LANGFILE="REPLACEHOME/.dmrc"
DMLANG=$(cat "$LANGFILE" | grep ^Language= | cut -d '=' -f 2)
DMLANG=$(cat "$LANGFILE" | grep ^Language= | cut -d '=' -f 2 | tr '[:upper:]' '[:lower:]')
WLANG=$(echo "$LANG" | tr '[:upper:]' '[:lower:]')
if [ "$LANG" != "$DMLANG" ];then
if [ "$WLANG" != "$DMLANG" ];then
yad --title="Set FWUL language" --fixed --height=200 --width=600 --image="REPLACEHOME/.fwul/warning_64x64.png" --text "\n It seems you have changed the desktop language ($LANG vs $DMLANG).\n\n To fully apply the change you need to login again by clicking the\n\n <b>\"Apply &amp; Logout\"</b>\n\n button below\n\n (this is a workaround and will be removed in a future release)" --button="Apply &amp; Logout":2
sudo systemctl restart lightdm
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment