Tested accountsservice and here is a workaround for it also:

-----------------
#!/bin/bash

# use .dmrc or accountsservice data (if accounts-daemon is running)

if pidof accounts-daemon &> /dev/null
then
   TEMPLANG=$(cat "/var/lib/AccountsService/users/$USER" | grep ^Language= | 
cut -d '=' -f 2 | sed 's/utf8/UTF8/')
   [ ! -z "$TEMPLANG" ] && export LANG=$TEMPLANG
else
   TEMPLANG=$(cat "$HOME/.dmrc" | grep ^Language= | cut -d '=' -f 2 | sed 
's/utf8/UTF8/')
   [ ! -z "$TEMPLANG" ] && export LANG=$TEMPLANG
fi
-----------------

What is the correct $LANGUAGE syntax when locale has a modifier?
In my case, when $LANG is "ru_RU.UTF-8@ISO", your $LANGUAGE generator line 
produces "ru_RU@ISO:ru@ISO". Is that correct, or it should be only "ru_RU:ru"?


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to