On 2012-10-16 16:22, Andrew Phillips wrote: > lightdm-gtk-greeter appears to set the language properly since the > introduction of accountsservice 0.6.15-2ubuntu9.4 (LP: #1018621).
In that case you don't have ~/.profile on your machine, right? Anyway, there is no need any longer since the accountsservice version you mentioned. > It however does not restore the previously selected language when the > user logs in, giving them the system default, but that is a different > issue. Really? Can you please post the output of: cat /var/lib/AccountsService/users/[username] cat ~/.pam_environment ** Also affects: accountsservice (Ubuntu) Importance: Undecided Status: New ** Changed in: accountsservice (Ubuntu) Status: New => Fix Released ** Changed in: lightdm (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to accountsservice 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 : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp