Comment 11 for bug 1019314

Revision history for this message
Claude Durocher (claude-durocher) wrote :

Also affected today : just upgraded to lightdm 1.2.3 as it's in the update channel and locale settings (french language selected) are not applied anymore. Note that we are using PBIS (likewise-open) to login to a domain account.

The script #8 was not working for me and I changed it for :

#!/bin/bash
if pidof lightdm
then
 if pidof accounts-daemon
 then
  LANGFILE="/var/lib/AccountsService/users/$USER"
 else
  LANGFILE="$HOME/.dmrc"
 fi
 TEMPLANG=$(cat "$LANGFILE" | grep ^FormatsLocale= | cut -d '=' -f 2 | sed 's/utf8/UTF8/')
 [ ! -z "$TEMPLANG" ] && export LANG=$TEMPLANG
 TEMPLANGUAGE="$(echo $LANG | cut -d '@' -f 1 | cut -d '.' -f 1 | cut -d '_' -f 1):en"
 [ ! -z "$TEMPLANGUAGE" ] && export LANGUAGE=$TEMPLANGUAGE
fi