[Pkg-xfce-devel] Bug#767359: Bug#767359: Bug#767359: lightdm: Selected session not remembered anymore

Yves-Alexis Perez corsac at debian.org
Fri Oct 31 14:46:31 UTC 2014


On ven., 2014-10-31 at 14:17 +0100, Cesare Leonardi wrote:
> On 31/10/2014 09:42, Yves-Alexis Perez wrote:
> > Actually, I think it might not be related to 1.10.2-3 changes, but 
> > rather the new upstream release 1.10.3. It has a NEWS entry:
> > 
> > * Don't access .dmrc files until information from these files is 
> > required
> 
> I've done some tests and looks like you are wrong.  :-)
> 
> First, i see the behaviour reported in this bug on two PC, with many
> similarities:
> * i386 architecture
> * regularly updated Debian unstable
> * Xfce and Mate installed
> * lightdm-gtk-greeter
> On one of these PC (the one which this bug comes from), some days ago
> i've work arounded with:
> update-alternatives --display x-session-manager

That's not a workaround, at least not one I'm interested in. You're just
changing the behavior for the “default” (lightdm-xsession) session.
> 
> On the other i've done what you requested.
> First from snapshot.debian.org i've downloaded
> "lightdm_1.10.2-2_i386.deb" and "lightdm_1.10.2-3_i386.deb".
> Downgrading lightdm to 1.10.2-2 restore the previous behaviour and
> i've tested following these steps:
> * systemctl restart lightdm
> * login changing from default to mate session
> * logout
> * systemctl restart lightdm
> Now if i insert the same username and password in the loginbox, then
> go to session dropdown menu, i still see "mate".
> 
> Upgrading to 1.10.2-3 and repeating the steps above, after the last
> restart of lightdm i see the default session restored.
> And in this situation here is my .dmrc after login with Mate:
> ----------------
> 
> 
> [Desktop]
> Session=mate
> Language=it_IT.utf8
> Layout=it
> ----------------



Actually I think there are two bugs here. 

First, it seems that between 1.10.2-2 and 1.10.2-3 the “last started
session” state of  lightdm-gtk-greeter (found
in /var/lib/lightdm/.cache/lightdm-gtk-greeter/state) is not saved.

In -2, if you start lightdm (with lightdm-gtk-greeter), then select a
session, then login, then logout, the selected session is saved in the
state file (for example, last-session=xfce). That file is persistent
accross lightdm restarts (and reboots), so the next time lightdm
(actually the greeter, I guess) is restarted, it'll load the “last
session” from that file. That's a per-machine “last session”.


> Note that if i simply logout (without rebooting or restarting
> lightdm), my choice is retained.

In -3, it seems that the file content (or maybe the file itself) is
lost, which means the settings are not correctly loaded.

So that's the first issue.

The second issue is that the per-user “last session” (saved in .dmrc) is
not loaded at all. When you enter your username (or select it from the
menu), the user language is loaded (you can see it change on the top
right if it's different from the default language). At that point, the
last user session should be saved too, but it's not, for some reason.

That bug was somehow hidden (if present) before -3 because I guess on
most machines the per-machine “last-session” is usually the same as the
user-selected session, and so nobody noticed.

Regards,
-- 
Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20141031/ef4b20b5/attachment.sig>


More information about the Pkg-xfce-devel mailing list