OBS User unknown
2008-11-04 16:58:59 +00:00
committed by Git OBS Bridge
parent 2f46d5016c
commit 0bee246fab
3 changed files with 33 additions and 14 deletions

11
xim
View File

@@ -79,7 +79,16 @@ adduserenv () {
done < <(exec -l -a ${SHELL##*/} $SHELL -c printenv)
}
adduserenv LANG LC_CTYPE LC_ALL INPUT_METHOD
# if gdm passes the language to Xsession, we should not override this
# see http://bugzilla.novell.com/show_bug.cgi?id=440371
# The test for $GDM_LANG needs to be changed slightly as soon as other
# displaymanager also pass a second argument to Xsession.
if test -n "$GDM_LANG" ; then
echo "/etc/X11/xim: use GDM_LANG=$GDM_LANG"
adduserenv INPUT_METHOD
else
adduserenv LANG LC_CTYPE LC_ALL INPUT_METHOD
fi
test $extglob -eq 0 && shopt -u extglob