[Pkg-xfce-devel] Bug#733261: Bug#733261: Bug#733261: lightdm lost ability not to set LANG

Ernest Adrogué nfdisco at gmail.com
Sat Jan 4 12:12:49 UTC 2014


2014-01- 3, 21:58 (+0100); Yves-Alexis Perez escriu:
> On Fri, Jan 03, 2014 at 08:38:55PM +0100, Ernest Adrogué wrote:
> > 2014-01- 3, 19:43 (+0100); Yves-Alexis Perez escriu:
> > > On Fri, Jan 03, 2014 at 04:02:30PM +0100, Ernest Adrogué wrote:
> > > > Package: lightdm
> > > > Version: 1.8.5-2
> > > > Followup-For: Bug #733261
> > > > 
> > > > Hi there,
> > > > 
> > > > I don't get it.  So, the only way to set the locale for my user account with
> > > > LightDM is using the GUI?
> > > > 
> > > > Then what is the point of this .dmrc file if it is ignored/overwritten by
> > > > the display manager?
> 
> It's used by lightdm to save your setting?
> > > 
> > > No, what's overriden is the fact you *removed* the language setting. If
> > > you *change* the locale in there, it should work.
> > 
> > What do you mean *I* removed the language setting?  
> 
> I actually mean the initial reporter, sorry for that. Your issue is
> different (although it might be related).

I thought I was in the same situation as the OP, sorry about the confusion.

> > 
> > This file was created by LightDM. It contained the following lines:
> > 
> > [Desktop]
> > Session=lightdm-xsession
> > Language=en_US.utf8
> > 
> > ---EOF---
> > 
> > This is the default locale in the system.  Then I edited the file and
> > replaced "en_US-utf8" with "ca_ES.UTF-8".
> > 
> > [Desktop]
> > Session=lightdm-xsession
> > Language=ca_ES.UTF-8
> > 
> > ---EOF---
> > 
> > Logged out, logged in, now the locale is still set to "en_US.utf8" and the
> > file has been reverted to the state previous to my edit.
> 
> Can you check .dmrc when logged out?

Yes, this is the output of `stat .dmrc`

* When I first log in

  File: '.dmrc'
  Size: 55        	Blocks: 8          IO Block: 4096   regular file
Device: 804h/2052d	Inode: 39455122    Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  ernest)   Gid: ( 1000/  ernest)
Access: 2014-01-04 13:00:44.715862669 +0100
Modify: 2014-01-04 13:00:34.903862812 +0100
Change: 2014-01-04 13:00:34.963862811 +0100
 Birth: -

* After I edit the file

  File: '.dmrc'
  Size: 56        	Blocks: 8          IO Block: 4096   regular file
Device: 804h/2052d	Inode: 39455122    Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  ernest)   Gid: ( 1000/  ernest)
Access: 2014-01-04 13:00:44.715862669 +0100
Modify: 2014-01-04 13:01:48.779861734 +0100
Change: 2014-01-04 13:01:48.779861734 +0100
 Birth: -

* When logged out

  File: '.dmrc'
  Size: 56        	Blocks: 8          IO Block: 4096   regular file
Device: 804h/2052d	Inode: 39455122    Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  ernest)   Gid: ( 1000/  ernest)
Access: 2014-01-04 13:00:44.715862669 +0100
Modify: 2014-01-04 13:01:48.779861734 +0100
Change: 2014-01-04 13:01:48.779861734 +0100
 Birth: -

* After logging in for second time

  File: '.dmrc'
  Size: 55        	Blocks: 8          IO Block: 4096   regular file
Device: 804h/2052d	Inode: 39455122    Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  ernest)   Gid: ( 1000/  ernest)
Access: 2014-01-04 13:03:07.623860584 +0100
Modify: 2014-01-04 13:03:07.623860584 +0100
Change: 2014-01-04 13:03:07.675860583 +0100
 Birth: -

So, the file is overwritten when I log in.  I changed the permissions to
`a-w` but it didn't prevent the file from being overwritten.

Regards.



More information about the Pkg-xfce-devel mailing list