Bug#679386: [Pkg-xfce-devel] Bug#679386: Bug#679386: lightdm: Language selection is ignored in session, $LANG is system default

2012-07-23 Thread Yves-Alexis Perez
On lun., 2012-07-23 at 00:33 -0700, ian_br...@fastmail.net wrote:
 On Mon, 23 Jul 2012 07:59:32 +0200
 Yves-Alexis Perez cor...@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
Description: This is a digitally signed message part


Bug#679386: [Pkg-xfce-devel] Bug#679386: Bug#679386: lightdm: Language selection is ignored in session, $LANG is system default

2012-07-23 Thread ian_bruce
On Mon, 23 Jul 2012 10:33:32 +0200
Yves-Alexis Perez cor...@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


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



Bug#679386: [Pkg-xfce-devel] Bug#679386: Bug#679386: lightdm: Language selection is ignored in session, $LANG is system default

2012-07-23 Thread Yves-Alexis Perez
On lun., 2012-07-23 at 02:08 -0700, ian_br...@fastmail.net wrote:
 On Mon, 23 Jul 2012 10:33:32 +0200
 Yves-Alexis Perez cor...@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
Description: This is a digitally signed message part


Bug#679386: [Pkg-xfce-devel] Bug#679386: Bug#679386: lightdm: Language selection is ignored in session, $LANG is system default

2012-07-23 Thread ian_bruce
On Mon, 23 Jul 2012 11:29:26 +0200
Yves-Alexis Perez cor...@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.


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