[Pkg-xfce-devel] Bug#679386: Re: Dirty Workaround

Vladimir K pzs-fs at yandex.ru
Sat Oct 20 09:40:28 UTC 2012


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 at ISO", your $LANGUAGE generator line produces "ru_RU at ISO:ru at ISO". Is that correct, or it should be only "ru_RU:ru"?



More information about the Pkg-xfce-devel mailing list