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

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Fri Oct 19 09:32:17 UTC 2012


On Thu, Oct 18, 2012 at 11:56:21PM +0200, John Paul Adrian Glaubitz wrote:
> your workaround is actually a nice idea. However, there is one problem
> which is the fact that it relies on the .dmrc file which is not always
> reliably written and the language setting is therefore not accessible.

Short follow-up:

I have tested your work-around and it actually doesn't work when a
default locale has been set (/etc/default/locale). In this case, you
will also have to set LANGUAGE, otherweise the language will still be
set to the system's default language.

In order to fix this, I added the following two lines to your script:

TEMPLANG="$(echo "$LANG" | sed -e 's/\([a-z]*_[A-Z]*\)\.[A-Z]*\-[0-9]/\1/g')"":""$(echo "$LANG" | sed -e 's/\([a-z]*\)_[A-Z]*\.[A-Z]*\-[0-9]/\1/g')"
[ ! -z "$TEMPLANG" ] && export LANGUAGE=$TEMPLANG

This will finally make language selection work for me together with the
patched version of lightdm [1].

Cheers,

Adrian

> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690899



More information about the Pkg-xfce-devel mailing list