Debian Bug report logs -
#679386
lightdm: Language selection is ignored in session, $LANG is system default
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Thu, 28 Jun 2012 10:24:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
New Bug report received and forwarded. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Thu, 28 Jun 2012 10:24:08 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: lightdm
Version: 1.2.2-1
Severity: normal
Dear Maintainer,
After upgrade to 1.2.2 (tried both 1.2.2-1 and 1.2.2-3) language selection stopped working.
home directory is not encrypted or anything. It is available before login.
.dmrc is updated, (although encoding syntax for Language is different: "utf8" instead of "UTF-8")
But $LANG inside session is still same as system default, not what I selected in lightdm.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lightdm depends on:
ii adduser 3.113+nmu3
ii consolekit 0.4.5-3
ii dbus 1.6.0-1
ii debconf [debconf-2.0] 1.5.43
ii libc6 2.13-33
ii libglib2.0-0 2.32.3-1
ii libpam0g 1.1.3-7.1
ii libxcb1 1.8.1-1
ii libxdmcp6 1:1.1.1-1
ii lightdm-gtk-greeter 1.1.6-1
Versions of packages lightdm recommends:
ii xserver-xorg 1:7.6+13
Versions of packages lightdm suggests:
pn accountsservice <none>
-- Configuration Files:
/etc/lightdm/lightdm.conf changed:
[LightDM]
[SeatDefaults]
xserver-allow-tcp=false
greeter-session=lightdm-greeter
greeter-hide-users=false
greeter-show-manual-login=true
session-wrapper=/etc/X11/Xsession
[XDMCPServer]
[VNCServer]
-- debconf information:
lightdm/daemon_name: /usr/sbin/lightdm
* shared/default-x-display-manager: lightdm
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Thu, 28 Jun 2012 11:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Thu, 28 Jun 2012 11:39:05 GMT) (full text, mbox, link).
Message #10 received at 679386@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On jeu., 2012-06-28 at 14:21 +0400, Vladimir K wrote:
> Dear Maintainer,
> After upgrade to 1.2.2 (tried both 1.2.2-1 and 1.2.2-3) language selection stopped working.
> home directory is not encrypted or anything. It is available before login.
> .dmrc is updated, (although encoding syntax for Language is different: "utf8" instead of "UTF-8")
> But $LANG inside session is still same as system default, not what I selected in lightdm.
Where exactly do you select your language? Because as far as I know,
lightdm-gtk-greeter doesn't support language selection.
--
Yves-Alexis
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Thu, 28 Jun 2012 14:03:10 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Thu, 28 Jun 2012 14:03:10 GMT) (full text, mbox, link).
Message #15 received at 679386@bugs.debian.org (full text, mbox, reply):
I set show-language-selector=true in /etc/lightdm/lightdm-gtk-greeter.conf
The language field appears at login screen.
I select language.
It worked in 1.0.11
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Fri, 29 Jun 2012 15:27:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Fri, 29 Jun 2012 15:27:04 GMT) (full text, mbox, link).
Message #20 received at 679386@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
affects lightdm
affects debian
done
On jeu., 2012-06-28 at 14:21 +0400, Vladimir K wrote:
> Package: lightdm
> Version: 1.2.2-1
> Severity: normal
>
> Dear Maintainer,
> After upgrade to 1.2.2 (tried both 1.2.2-1 and 1.2.2-3) language selection stopped working.
> home directory is not encrypted or anything. It is available before login.
> .dmrc is updated, (although encoding syntax for Language is different: "utf8" instead of "UTF-8")
> But $LANG inside session is still same as system default, not what I selected in lightdm.
>
It seems I can confirm this. I can't test with previous version, but I'm
forwarding this upstream.
Regards,
--
Yves-Alexis
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Mon, 23 Jul 2012 00:06:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Ian Bruce <ian_bruce@fastmail.net>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Mon, 23 Jul 2012 00:06:03 GMT) (full text, mbox, link).
Message #27 received at 679386@bugs.debian.org (full text, mbox, reply):
Package: lightdm
Version: 1.2.2-3
Followup-For: Bug #679386
I confirm this bug report in every detail; what the submitter describes
happens exactly the same for me. It used to work, prior to the recent
package upgrade.
I'm using the XFCE-4 desktop environment; I don't know if that matters.
The ~/.dmrc file is written according to the language selected at login,
but the environment variables are not set:
$ cat ~/.dmrc
[Desktop]
Session=xfce
Language=ja_JP.utf8
$
$
$ locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages lightdm depends on:
ii adduser 3.112+nmu2
ii consolekit 0.4.5-1
ii dbus 1.6.0-1
ii debconf [debconf-2.0] 1.5.36.1
ii libc6 2.13-33
ii libglib2.0-0 2.32.3-1
ii libpam0g 1.1.1-6.1+squeeze1
ii libxcb1 1.8.1-1
ii libxdmcp6 1:1.1.1-1
ii lightdm-gtk-greeter 1.1.6-2
Versions of packages lightdm recommends:
ii xserver-xorg 1:7.7+1
Versions of packages lightdm suggests:
ii accountsservice 0.6.21-6
-- Configuration Files:
/etc/lightdm/lightdm.conf changed:
[LightDM]
[SeatDefaults]
xserver-allow-tcp=true
greeter-session=lightdm-greeter
greeter-hide-users=true
session-wrapper=/etc/X11/Xsession
[XDMCPServer]
[VNCServer]
-- debconf information:
lightdm/daemon_name: /usr/sbin/lightdm
* shared/default-x-display-manager: lightdm
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Mon, 23 Jul 2012 06:03:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Mon, 23 Jul 2012 06:03:07 GMT) (full text, mbox, link).
Message #32 received at 679386@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On dim., 2012-07-22 at 16:52 -0700, Ian Bruce wrote:
> Package: lightdm
> Version: 1.2.2-3
> Followup-For: Bug #679386
>
> I confirm this bug report in every detail; what the submitter describes
> happens exactly the same for me. It used to work, prior to the recent
> package upgrade.
>
It seems that this was done on purpose because, apparently, the data
should come from PAM. See upstream bug for more details.
Regards,
--
Yves-Alexis
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Mon, 23 Jul 2012 07:42:03 GMT) (full text, mbox, link).
Acknowledgement sent
to <ian_bruce@fastmail.net>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Mon, 23 Jul 2012 07:42:03 GMT) (full text, mbox, link).
Message #37 received at 679386@bugs.debian.org (full text, mbox, reply):
On Mon, 23 Jul 2012 07:59:32 +0200
Yves-Alexis Perez <corsac@debian.org> wrote:
> It seems that this was done on purpose because, apparently, the data
> should come from PAM. See upstream bug for more details.
Presumably you mean here:
https://bugs.launchpad.net/lightdm/+bug/1019314
I agree with your description of the situation, except for this:
In 1.2, when the user selects the locale in LightDM greeter, it's
set for the session and saved in .dmrc. Then for the following
sessions, nothing loads .dmrc and the locale is not correctly set.
That's not what I'm seeing.
In 1.2, when the user selects the locale in the LightDM greeter, it's
saved in ~/.dmrc, but it IS NOT set in the environment for that session,
or any other.
See my comment on the Debian bug report, and the explanation by the
original submitter, which are in agreement on this point:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679386
In other words, LightDM locale selection is currently completely
useless, because it has no effect at all on the session being started,
or any subsequent one.
One might ask why a Pluggable Authentication Module ought to be
responsible for things which clearly have nothing to do with
authentication, such as locale selection, especially when they are
liable to change at every login.
-- Ian Bruce
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Mon, 23 Jul 2012 08:36:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Mon, 23 Jul 2012 08:36:03 GMT) (full text, mbox, link).
Message #42 received at 679386@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On lun., 2012-07-23 at 00:33 -0700, ian_bruce@fastmail.net wrote:
> On Mon, 23 Jul 2012 07:59:32 +0200
> Yves-Alexis Perez <corsac@debian.org> wrote:
>
> > It seems that this was done on purpose because, apparently, the data
> > should come from PAM. See upstream bug for more details.
>
> Presumably you mean here:
>
> https://bugs.launchpad.net/lightdm/+bug/1019314
Yes, that's the target of the forwarded tag.
>
> I agree with your description of the situation, except for this:
>
> In 1.2, when the user selects the locale in LightDM greeter, it's
> set for the session and saved in .dmrc. Then for the following
> sessions, nothing loads .dmrc and the locale is not correctly set.
>
> That's not what I'm seeing.
>
> In 1.2, when the user selects the locale in the LightDM greeter, it's
> saved in ~/.dmrc, but it IS NOT set in the environment for that session,
> or any other.
Ok, will correct upstream bug (or feel free to do it in case you have a
launchpad account, but don't bother creating one if you don't).
>
> See my comment on the Debian bug report, and the explanation by the
> original submitter, which are in agreement on this point:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679386
>
> In other words, LightDM locale selection is currently completely
> useless, because it has no effect at all on the session being started,
> or any subsequent one.
>
> One might ask why a Pluggable Authentication Module ought to be
> responsible for things which clearly have nothing to do with
> authentication, such as locale selection, especially when they are
> liable to change at every login.
PAM is more than authentication, it handles quite some login-related
stuff. And maybe it makes sense to store login-specific settings like
locales into PAM. But my feeling is that it's not the case. It seems
that PAM (through pam_env module) only handles /default/ environment,
taken from /etc/environment. So while it might be useful to have a
default setting for the box, it's plain useless for user-specific
settings. So if my analysis is right, I'm a bit puzzled about the
change.
Note that you might try with accountsservice installed, it might help.
Regards,
--
Yves-Alexis
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Mon, 23 Jul 2012 09:12:05 GMT) (full text, mbox, link).
Acknowledgement sent
to <ian_bruce@fastmail.net>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Mon, 23 Jul 2012 09:12:05 GMT) (full text, mbox, link).
Message #47 received at 679386@bugs.debian.org (full text, mbox, reply):
On Mon, 23 Jul 2012 10:33:32 +0200
Yves-Alexis Perez <corsac@debian.org> wrote:
>> One might ask why a Pluggable Authentication Module ought to be
>> responsible for things which clearly have nothing to do with
>> authentication, such as locale selection, especially when they are
>> liable to change at every login.
>
> PAM is more than authentication, it handles quite some login-related
> stuff. And maybe it makes sense to store login-specific settings like
> locales into PAM. But my feeling is that it's not the case. It seems
> that PAM (through pam_env module) only handles /default/ environment,
> taken from /etc/environment. So while it might be useful to have a
> default setting for the box, it's plain useless for user-specific
> settings. So if my analysis is right, I'm a bit puzzled about the
> change.
This.
Not just user-specific settings, but session-specific settings.
> Note that you might try with accountsservice installed, it might help.
Doesn't seem to, and I don't see why it would. According to the README:
The AccountsService project provides
- A set of D-Bus interfaces for querying and manipulating user
account information.
- An implementation of these interfaces based on the usermod(8),
useradd(8) and userdel(8) commands.
There's nothing session-specific about that.
-- Ian Bruce
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Mon, 23 Jul 2012 09:33:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Mon, 23 Jul 2012 09:33:03 GMT) (full text, mbox, link).
Message #52 received at 679386@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On lun., 2012-07-23 at 02:08 -0700, ian_bruce@fastmail.net wrote:
> On Mon, 23 Jul 2012 10:33:32 +0200
> Yves-Alexis Perez <corsac@debian.org> wrote:
>
> >> One might ask why a Pluggable Authentication Module ought to be
> >> responsible for things which clearly have nothing to do with
> >> authentication, such as locale selection, especially when they are
> >> liable to change at every login.
> >
> > PAM is more than authentication, it handles quite some login-related
> > stuff. And maybe it makes sense to store login-specific settings like
> > locales into PAM. But my feeling is that it's not the case. It seems
> > that PAM (through pam_env module) only handles /default/ environment,
> > taken from /etc/environment. So while it might be useful to have a
> > default setting for the box, it's plain useless for user-specific
> > settings. So if my analysis is right, I'm a bit puzzled about the
> > change.
>
> This.
>
> Not just user-specific settings, but session-specific settings.
Eh?
>
> > Note that you might try with accountsservice installed, it might help.
>
> Doesn't seem to, and I don't see why it would. According to the README:
>
> The AccountsService project provides
>
> - A set of D-Bus interfaces for querying and manipulating user
> account information.
>
> - An implementation of these interfaces based on the usermod(8),
> useradd(8) and userdel(8) commands.
>
> There's nothing session-specific about that.
Well, it could have queried your locale information. Thanks for testing
anyway.
--
Yves-Alexis
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Mon, 23 Jul 2012 12:09:03 GMT) (full text, mbox, link).
Acknowledgement sent
to <ian_bruce@fastmail.net>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Mon, 23 Jul 2012 12:09:03 GMT) (full text, mbox, link).
Message #57 received at 679386@bugs.debian.org (full text, mbox, reply):
On Mon, 23 Jul 2012 11:29:26 +0200
Yves-Alexis Perez <corsac@debian.org> wrote:
>> Not just user-specific settings, but session-specific settings.
>
> Eh?
The same user might want to work in different languages at various
times.
The natural place to specify this is when they log in, rather than with
some inconvenient account management utility. That would only take
effect once they logged out and then logged in again, which would be a
real nuisance.
See the discussion here:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/803858
https://lists.ubuntu.com/archives/ubuntu-desktop/2011-July/thread.html#3137
-- between multilingual users who need this feature, and unilingual
developers who Gnomeishly inform them that "you'll do as we tell you to,
and you'll like it."
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Wed, 17 Oct 2012 10:27:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Wed, 17 Oct 2012 10:27:05 GMT) (full text, mbox, link).
Message #62 received at 679386@bugs.debian.org (full text, mbox, reply):
As a dirty workaround, I've created a script: /etc/X11/Xsession.d/39-lightdm-dmrc-fix (runs just before xsessionrc parsing)
-------
#!/bin/bash
TEMPLANG=$(cat "$HOME/.dmrc" | grep ^Language= | cut -d '=' -f 2 | sed 's/utf8/UTF8/')
[ ! -z "$TEMPLANG" ] && export LANG=$TEMPLANG
-------
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Thu, 18 Oct 2012 21:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Thu, 18 Oct 2012 21:57:03 GMT) (full text, mbox, link).
Message #67 received at 679386@bugs.debian.org (full text, mbox, reply):
Hi Vladimir,
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.
I have filed a bug report with an attached patch which will fix this
behavior [1]. You might want to apply this patch to your version of
lightdm and rebuild the package or purge the 'accountsservice' package
which could fix this issue, but I didn't test it. Purging
'accountsservice' will only work, however, when you're not installing
GNOME3 which depends on the 'gdm3' package which itself depends on
'accountsservice'.
Cheers,
Adrian
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690899
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Fri, 19 Oct 2012 09:36:05 GMT) (full text, mbox, link).
Acknowledgement sent
to John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Fri, 19 Oct 2012 09:36:05 GMT) (full text, mbox, link).
Message #72 received at 679386@bugs.debian.org (full text, mbox, reply):
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
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Sat, 20 Oct 2012 09:45:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Sat, 20 Oct 2012 09:45:05 GMT) (full text, mbox, link).
Message #77 received at 679386@bugs.debian.org (full text, mbox, reply):
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"?
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Sat, 20 Oct 2012 10:09:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Sat, 20 Oct 2012 10:09:06 GMT) (full text, mbox, link).
Message #82 received at 679386@bugs.debian.org (full text, mbox, reply):
Remove "&> /dev/null" in script condition, and it should work (for some reason "if" condition allways triggered as true when parsed by Xsession if redirect is present)
If accountsservice is not installed, this workaround works best with lightdm 1.4.0-1 from experimental.
Version 1.2.2-3 always defaults to system locale in greeter, you have to re-choose it every time.
Version 1.4.0-1 just does not touch/show locale, so the last is being set by script, everything works fine.
When accountsservice is installed, both versions work well with workaround.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Sat, 20 Oct 2012 12:51:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Sat, 20 Oct 2012 12:51:03 GMT) (full text, mbox, link).
Message #87 received at 679386@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On mer., 2012-10-17 at 14:24 +0400, Vladimir K wrote:
> As a dirty workaround, I've created a script: /etc/X11/Xsession.d/39-lightdm-dmrc-fix (runs just before xsessionrc parsing)
>
> -------
> #!/bin/bash
> TEMPLANG=$(cat "$HOME/.dmrc" | grep ^Language= | cut -d '=' -f 2 | sed 's/utf8/UTF8/')
> [ ! -z "$TEMPLANG" ] && export LANG=$TEMPLANG
> -------
>
Note that you don't really need to put anything there. You can just put
this in .xsessionrc. For example, mine is:
cat .xsessionrc
export LANG=fr_FR.UTF-8
export LC_MESSAGES=en_US.UTF-8
Regards,
--
Yves-Alexis
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Sat, 20 Oct 2012 14:51:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Sat, 20 Oct 2012 14:51:05 GMT) (full text, mbox, link).
Message #92 received at 679386@bugs.debian.org (full text, mbox, reply):
Yes, I know about ~/.xsessionrc.
But this bug is about choosing language in greeter GUI.
Updated workaround:
--------------
#!/bin/bash
# workaround for session language selection in lightdm greeter
# use .dmrc or accountsservice data (if accounts-daemon is running)
if pidof accounts-daemon
then
echo accounts > /tmp/wtf
TEMPLANG=$(cat "/var/lib/AccountsService/users/$USER" | grep ^Language= | cut -d '=' -f 2 | sed 's/utf8/UTF8/')
[ ! -z "$TEMPLANG" ] && export LANG=$TEMPLANG
TEMPLANGUAGE="$(echo $LANG | cut -d '@' -f 1 | cut -d '.' -f 1):$(echo $LANG | cut -d '@' -f 1 | cut -d '.' -f 1 | cut -d '_' -f 1)"
[ ! -z "$TEMPLANGUAGE" ] && export LANGUAGE=$TEMPLANGUAGE
else
echo dmrc > /tmp/wtf
TEMPLANG=$(cat "$HOME/.dmrc" | grep ^Language= | cut -d '=' -f 2 | sed 's/utf8/UTF8/')
[ ! -z "$TEMPLANG" ] && export LANG=$TEMPLANG
TEMPLANGUAGE="$(echo $LANG | cut -d '@' -f 1 | cut -d '.' -f 1):$(echo $LANG | cut -d '@' -f 1 | cut -d '.' -f 1 | cut -d '_' -f 1)"
[ ! -z "$TEMPLANGUAGE" ] && export LANGUAGE=$TEMPLANGUAGE
fi
--------------
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Sat, 20 Oct 2012 17:09:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Sat, 20 Oct 2012 17:09:09 GMT) (full text, mbox, link).
Message #97 received at 679386@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On sam., 2012-10-20 at 18:40 +0400, Vladimir K wrote:
> Yes, I know about ~/.xsessionrc.
> But this bug is about choosing language in greeter GUI.
I was just saying that you could directly put your workaround script
in .xsessionrc.
--
Yves-Alexis
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Sun, 21 Oct 2012 19:09:03 GMT) (full text, mbox, link).
Acknowledgement sent
to John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Sun, 21 Oct 2012 19:09:03 GMT) (full text, mbox, link).
Message #102 received at 679386@bugs.debian.org (full text, mbox, reply):
Hey Vladimir,
> When accountsservice is installed, both versions work well with
> workaround.
Well, yes, except I cannot rely on AccountsService as it stores its
information *locally* which is completely useless if users login over
the network.
I have no idea what went into the minds of GNOME developers when they
came up with AccountsService but they never tested it in a corporate
environment, obviously. Storing the information about the default
session and language locally means that it gets lost once a user
switches their login machine (which happens on a daily basis in a
university network with hundreds of students without their own desktop
machines).
Thus, I had to extend your workaround to reliably retrieve the
information about the default language from ${HOME}/.dmrc.
> 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"?
I checked my /etc/default/locale and it used the following format:
> # File generated by update-locale
> LANG=en_US.UTF-8
> LANGUAGE="en_US:en"
Hence I assumed the format "lang_COUNTRY:lang" to be correct for
LANGUAGE. If your code snippet makes it even more flexible, I will
shamelessly copy it :).
PS: Please keep me in the CC, I'm not subscribed to this bug report.
Cheers,
Adrian
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#679386; Package lightdm.
(Mon, 22 Oct 2012 15:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
Your message did not contain a Subject field. They are recommended and
useful because the title of a $gBug is determined using this field.
Please remember to include a Subject field in your messages in future.
(Mon, 22 Oct 2012 15:57:03 GMT) (full text, mbox, link).
Message #107 received at 679386@bugs.debian.org (full text, mbox, reply):
My snippet decomposes $LANG by fields. Luckily, each delimiter in $LANG syntax is different, so it should be fairly reliable.
added lightdm check, so this script does not mess with any other DM.
/etc/X11/Xsession.d/39-lightdm-dmrc-fix:
--------------
#!/bin/bash
# workaround for session language selection in lightdm greeter
# use .dmrc or accountsservice data (if accounts-daemon is running)
# we need this only if lightdm is being used
if pidof lightdm
then
# if accountsservice is used, get info from there.
if pidof accounts-daemon
then
LANGFILE="/var/lib/AccountsService/users/$USER"
# if not, use .dmrc
else
LANGFILE="$HOME/.dmrc"
fi
# extract, fix and export $LANG
TEMPLANG=$(cat "$LANGFILE" | grep ^Language= | cut -d '=' -f 2 | sed 's/utf8/UTF8/')
[ ! -z "$TEMPLANG" ] && export LANG=$TEMPLANG
# convert $LANG to $LANGUAGE and export
TEMPLANGUAGE="$(echo $LANG | cut -d '@' -f 1 | cut -d '.' -f 1):$(echo $LANG | cut -d '@' -f 1 | cut -d '.' -f 1 | cut -d '_' -f 1)"
[ ! -z "$TEMPLANGUAGE" ] && export LANGUAGE=$TEMPLANGUAGE
fi
--------------
Merged 679386 694588
Request was from Yves-Alexis Perez <corsac@debian.org>
to 694588-submit@bugs.debian.org.
(Wed, 28 Nov 2012 19:48:09 GMT) (full text, mbox, link).
Added tag(s) fixed-upstream.
Request was from bts-link-upstream@lists.alioth.debian.org
to control@bugs.debian.org.
(Thu, 25 Apr 2013 19:57:05 GMT) (full text, mbox, link).
No longer marked as found in versions lightdm/1.2.2-3 and lightdm/1.2.2-1.
Request was from Yves-Alexis Perez <corsac@debian.org>
to control@bugs.debian.org.
(Mon, 06 Jan 2014 21:18:10 GMT) (full text, mbox, link).
Message #116 received at 694588-done@bugs.debian.org (full text, mbox, reply):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Version: 1.6.1-3
This one was actually a bug in the GTK+ greeter, which has been fixed
since.
- --
Yves-Alexis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQEcBAEBCgAGBQJSyx0uAAoJEG3bU/KmdcClpskH/38frhlVIOTAtQc3+9fGG4u9
tVvHDyMgrYEP6N5L+qzgrIV8XT85UKm+RHnpgnlCqurpKTspZHgigDQnfGZAiS+h
EyJKmvNFyZ6J5cSCkPyPAus1Qs4Up8hnL0+dAYlllDXuHwkQTOd9G2OEpC5KEYaE
jbaTH1Gq8KZF/BObB51uLW9FJGdXtaje3NuCkSl3CNf7NfTwdgSzvsa651LM8nbN
Q70guxqRJ6NZ5IPvI8MUHfYJNercZJWGuTntF9ryeVw+oexlUOahqSc1Upq/KXme
PSf01y5ihQWejOL7L1Z4O6jZ00BXgE1cz47fBwsfIuPVGq5A+zmhzJJQArsHua4=
=4mu6
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 04 Feb 2014 07:31:42 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Jul 3 05:31:10 2024;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.