--- startkde.orig 2012-10-20 20:09:44.000000000 +0200 +++ startkde 2013-01-15 14:58:39.286326686 +0100 @@ -68,12 +68,14 @@ mkdir -m 700 -p $kdehome/share mkdir -m 700 -p $kdehome/share/config -# Read LANG and write the country part to kdeglobals +# Check if the Country is undefined, if yes, read LANG and write the country +# part to the user's kdeglobals # de_AT.UTF-8 => Country=at -# This is necessary because klocale.cpp (kdelibs) does only try to read the value -# from kdeglobals and then falls back to default instead of triyng to detect it +# This is necessary because klocale.cpp (kdelibs) does only try to read the +# value from kdeglobals and then falls back to default instead of triyng to +# detect it -if [ ! -e $kdehome/share/config/kdeglobals ] || [ ! `grep "Country=" $kdehome/share/config/kdeglobals` ]; then +if [ -z "`kreadconfig --group Locale --key Country`" ]; then if [ ! $LANG ]; then if [ -e /etc/default/locale ]; then localefile='/etc/default/locale'