Yes, the user's don't have a .profile.

I may have solved the other issue...  If I comment out "LANG=" in
/etc/default/locale, it works as expected, though I don't believe I
should have to do this.  That file seems to override the
~/.pam_environment settings.

Logging in as French (fr_FR, fr_CA is not available but that's another issue), 
and LANG set in /etc/default/locale:
marc-cmo-ubuntu:~$ cat .pam_environment
LANG=en_CA.UTF-8
LANGUAGE=en

marc-cmo-ubuntu:~$ cat /var/lib/AccountsService/users/cmo-testuser 
[User]
Language=fr
FormatsLocale=en_CA.UTF-8
XSession=kde-plasma

KDE will run as French in this case, but anything that uses LANG will be
English.    Logging in again will leave English selected when the
greeter starts, and appears to keep it throughout.

With LANG commented out,  when the greeter starts the language selector
is blank.  Selecting a language causes the proper things to be put into
the two files, aside from FormatsLocale.

marc-cmo-ubuntu:~$ cat /var/lib/AccountsService/users/cmo-testuser 
[User]
Language=fr
FormatsLocale=en_CA.UTF-8
XSession=kde-plasma

marc-cmo-ubuntu:~$ cat ~cmo-testuser/.pam_environment 
LANGUAGE=fr:en_CA:en
LANG=fr_FR.UTF-8

I think this has drifted far from the original problem I opened the
ticket for.  I can get the behaviour I want by commenting out the line
in /etc/default/locale.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/972484

Title:
  lightdm-gtk-greeter doesn't set language for non-local users

Status in “accountsservice” package in Ubuntu:
  Fix Released
Status in “lightdm” package in Ubuntu:
  Incomplete

Bug description:
  We have an environment where several users use different languages but
  share machines which use LDAP/Kerberos/NFS.  In the previous LTS, the
  default display manager (GDM) provided a menu which would allow
  setting the language to use for a session, and would remember the
  previous setting (using ~/.dmrc). This appears to no longer work with
  lightdm in 12.04, and no menu is provided by default.  However, a menu
  can be enabled for lightdm-gtk-greeter (1.1.4-0ubuntu1).
  Unfortunately, the language choice doesn't get used.  I have the same
  problem if accountsservice (0.6.15-2ubuntu9) is enabled or not.

  The following is logged by lightdm when using accountsservice:
  [+117.92s] DEBUG: Continue authentication
  [+117.92s] DEBUG: Session 1719 got 1 message(s) from PAM
  [+117.92s] DEBUG: Prompt greeter with 1 message(s)
  [+127.62s] DEBUG: Continue authentication
  [+127.67s] DEBUG: Session 1719 authentication complete with return value 0: 
Success
  [+127.67s] DEBUG: Authenticate result for user phillipsa: Success
  [+127.68s] DEBUG: User phillipsa authorized
  [+127.68s] DEBUG: Greeter sets language fr
  [+127.69s] WARNING: Could not call SetLanguage: 
GDBus.Error:org.freedesktop.Accounts.Error.Failed: not access to HOME yet so 
language not saved
  [+127.69s] DEBUG: Greeter requests session gnome-fallback
  [+127.69s] DEBUG: Using session gnome-fallback
  [+127.69s] DEBUG: Stopping greeter
  [+127.69s] DEBUG: Session 1570: Sending SIGTERM
  [+127.71s] DEBUG: Greeter closed communication channel
  [+127.71s] DEBUG: Session 1570 exited with return value 0
  [+127.71s] DEBUG: Greeter quit
  [+127.72s] WARNING: Could not call SetXSession: 
GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "SetXSession" with 
signature "s" on interface "org.freedesktop.Accounts.User" doesn't exist

  [+127.74s] DEBUG: Dropping privileges to uid 32000
  [+127.74s] DEBUG: Restoring privileges
  [+127.76s] DEBUG: Dropping privileges to uid 32000
  [+127.76s] DEBUG: Writing /net/cmo/home/phillipsa/.dmrc
  [+127.76s] DEBUG: Restoring privileges
  [+127.76s] DEBUG: Starting session gnome-fallback as user phillipsa
  [+127.76s] DEBUG: Session 1719 running command /usr/sbin/lightdm-session 
gnome-session --session=gnome-fallback
  [+127.79s] DEBUG: Registering session with bus path 
/org/freedesktop/DisplayManager/Session0

  I understand that the new place for the language to be stored is in
  ~/.pam_environment, but the file does not get touched, rather ~/.dmrc
  does.

  From the lightdm logs when running in debug mode, in this case with 
account-daemon disabled:
  [+154.46s] DEBUG: Continue authentication
  [+154.47s] DEBUG: Session 1715 got 1 message(s) from PAM
  [+154.47s] DEBUG: Prompt greeter with 1 message(s)
  [+156.97s] DEBUG: Continue authentication
  [+157.02s] DEBUG: Session 1715 authentication complete with return value 0: 
Success
  [+157.02s] DEBUG: Authenticate result for user phillipsa: Success
  [+157.02s] DEBUG: User phillipsa authorized
  [+157.03s] DEBUG: Greeter sets language fr
  [+157.03s] DEBUG: Dropping privileges to uid 32000
  [+157.03s] DEBUG: Restoring privileges
  [+157.03s] DEBUG: Dropping privileges to uid 32000
  [+157.03s] DEBUG: Writing /net/cmo/home/phillipsa/.dmrc
  [+157.03s] DEBUG: Restoring privileges
  [+157.04s] DEBUG: Greeter requests session gnome-fallback
  [+157.04s] DEBUG: Using session gnome-fallback
  [+157.04s] DEBUG: Stopping greeter
  [+157.04s] DEBUG: Session 1567: Sending SIGTERM
  [+157.06s] DEBUG: Greeter closed communication channel
  [+157.06s] DEBUG: Session 1567 exited with return value 0
  [+157.06s] DEBUG: Greeter quit
  [+157.06s] DEBUG: Dropping privileges to uid 32000
  [+157.06s] DEBUG: Restoring privileges
  [+157.06s] DEBUG: Dropping privileges to uid 32000
  [+157.06s] DEBUG: Writing /net/cmo/home/phillipsa/.dmrc
  [+157.06s] DEBUG: Restoring privileges
  [+157.06s] DEBUG: Starting session gnome-fallback as user phillipsa
  [+157.06s] DEBUG: Session 1715 running command /usr/sbin/lightdm-session 
gnome-session --session=gnome-fallback
  [+157.09s] DEBUG: Registering session with bus path 
/org/freedesktop/DisplayManager/Session0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/972484/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to