Debian Bug report logs -
#767359
lightdm: Selected session not remembered anymore
Reported by: Cesare Leonardi <ced@bernispa.com>
Date: Thu, 30 Oct 2014 13:09:02 UTC
Severity: normal
Tags: moreinfo
Found in version lightdm/1.10.3-2
Fixed in version lightdm/1.10.3-3
Done: Yves-Alexis Perez <corsac@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#767359; Package lightdm.
(Thu, 30 Oct 2014 13:09:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Cesare Leonardi <ced@bernispa.com>:
New Bug report received and forwarded. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Thu, 30 Oct 2014 13:09:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: lightdm
Version: 1.10.3-2
Severity: normal
Suppose you have installed multiple desktop environment (in my case
XFCE and MATE). At the lightdm login there is the icon that let you
choose which one to start: default, mate, xfce.
Well, since some lightdm version (if i recall correctly 1.10.2-3), the
user choice is not remembered anymore between reboot and default is
always restored. A problem if default is not what you want.
So now if you want to keep your preference, you have to use the less
obvious and more hidden:
update-alternatives --display x-session-manager
Is it a bug or is it on purpose?
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 3.17-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lightdm depends on:
ii adduser 3.113+nmu3
ii dbus 1.8.8-2
ii debconf [debconf-2.0] 1.5.53
ii libc6 2.19-12
ii libgcrypt20 1.6.2-4
ii libglib2.0-0 2.42.0-2
ii libpam-systemd 215-5+b1
ii libpam0g 1.1.8-3.1
ii libxcb1 1.10-3
ii libxdmcp6 1:1.1.1-1
ii lightdm-gtk-greeter [lightdm-greeter] 1.8.5-1
Versions of packages lightdm recommends:
ii xserver-xorg 1:7.7+7
Versions of packages lightdm suggests:
pn accountsservice <none>
ii upower 0.99.1-3
-- Configuration Files:
/etc/apparmor.d/lightdm-guest-session be13115edc7bacad59293acb370e89ac [Errno 2] No such file or directory: u'/etc/apparmor.d/lightdm-guest-session be13115edc7bacad59293acb370e89ac'
-- debconf information:
lightdm/daemon_name: /usr/sbin/lightdm
* shared/default-x-display-manager: lightdm
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#767359; Package lightdm.
(Thu, 30 Oct 2014 19:09:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Thu, 30 Oct 2014 19:09:04 GMT) (full text, mbox, link).
Message #10 received at 767359@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
control: tag -1 moreinfo
On jeu., 2014-10-30 at 13:57 +0100, Cesare Leonardi wrote:
> Package: lightdm
> Version: 1.10.3-2
> Severity: normal
>
> Suppose you have installed multiple desktop environment (in my case
> XFCE and MATE). At the lightdm login there is the icon that let you
> choose which one to start: default, mate, xfce.
> Well, since some lightdm version (if i recall correctly 1.10.2-3), the
> user choice is not remembered anymore between reboot and default is
> always restored. A problem if default is not what you want.
Can you revert to 1.10.2-2 and confirm that?
>
> So now if you want to keep your preference, you have to use the less
> obvious and more hidden:
> update-alternatives --display x-session-manager
>
> Is it a bug or is it on purpose?
It looks like a bug. 1.10.2-3 had some changes which might be related.
Also, can you paste your .dmrc when you chose a different session than
the default one?
Finally, what greeter do you use?
Regards,
--
Yves-Alexis
[signature.asc (application/pgp-signature, inline)]
Added tag(s) moreinfo.
Request was from Yves-Alexis Perez <corsac@debian.org>
to 767359-submit@bugs.debian.org.
(Thu, 30 Oct 2014 19:09:04 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#767359; Package lightdm.
(Fri, 31 Oct 2014 08:45:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Fri, 31 Oct 2014 08:45:05 GMT) (full text, mbox, link).
Message #17 received at 767359@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On jeu., 2014-10-30 at 20:07 +0100, Yves-Alexis Perez wrote:
> control: tag -1 moreinfo
> On jeu., 2014-10-30 at 13:57 +0100, Cesare Leonardi wrote:
> > Package: lightdm
> > Version: 1.10.3-2
> > Severity: normal
> >
> > Suppose you have installed multiple desktop environment (in my case
> > XFCE and MATE). At the lightdm login there is the icon that let you
> > choose which one to start: default, mate, xfce.
> > Well, since some lightdm version (if i recall correctly 1.10.2-3), the
> > user choice is not remembered anymore between reboot and default is
> > always restored. A problem if default is not what you want.
>
> Can you revert to 1.10.2-2 and confirm that?
> >
> > So now if you want to keep your preference, you have to use the less
> > obvious and more hidden:
> > update-alternatives --display x-session-manager
> >
> > Is it a bug or is it on purpose?
>
> It looks like a bug. 1.10.2-3 had some changes which might be related.
> Also, can you paste your .dmrc when you chose a different session than
> the default one?
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
And I guess that change broke the loading (or maybe the saving,
actually) of the information.
Regards,
--
Yves-Alexis
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#767359; Package lightdm.
(Fri, 31 Oct 2014 13:27:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Cesare Leonardi <ced@bernispa.com>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Fri, 31 Oct 2014 13:27:05 GMT) (full text, mbox, link).
Message #22 received at 767359@bugs.debian.org (full text, mbox, reply):
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
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
----------------
Note that if i simply logout (without rebooting or restarting
lightdm), my choice is retained.
Thank you for looking into this.
Cesare.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#767359; Package lightdm.
(Fri, 31 Oct 2014 14:51:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Yves-Alexis Perez <corsac@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Fri, 31 Oct 2014 14:51:09 GMT) (full text, mbox, link).
Message #27 received at 767359@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#767359; Package lightdm.
(Fri, 31 Oct 2014 18:33:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Cesare Leonardi <ced@bernispa.com>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Fri, 31 Oct 2014 18:33:08 GMT) (full text, mbox, link).
Message #32 received at 767359@bugs.debian.org (full text, mbox, reply):
On 31/10/2014 15:46, Yves-Alexis Perez wrote:
> 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.
On one PC (the one with 1.10.2-3), if i login with session xfce, here is
the content of the state file:
------------------
[greeter]
last-user=cesare
last-session=xfce
------------------
After logging out the content get this:
------------------
[greeter]
last-user=*other
last-session=xfce
------------------
After "systemctl restart lightdm":
------------------
[greeter]
last-user=*other
------------------
On the other PC (the one with the latest 1.10.3-2), if i login with
session mate, here is the content of the state file:
------------------
[greeter]
last-user=berni\leonardic
last-session=mate
------------------
The user name format is because the he is part of a samba domain.
After logging out the content get this:
------------------
[greeter]
last-user=*other
last-session=mate
------------------
After "systemctl restart lightdm":
------------------
greeter]
last-user=*other
------------------
> In -3, it seems that the file content (or maybe the file itself)
> is lost, which means the settings are not correctly loaded.
Yes, the last-session row somehow get deleted: on lightdm shutdown or
on startup.
> 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.
On both PC, .dmrc look always correct and updated every time.
Just discarded.
In case of request or follow-up, i'll reply you on monday, when i'll
come back to work.
Best regards.
Cesare.
Reply sent
to Yves-Alexis Perez <corsac@debian.org>:
You have taken responsibility.
(Tue, 04 Nov 2014 21:21:09 GMT) (full text, mbox, link).
Notification sent
to Cesare Leonardi <ced@bernispa.com>:
Bug acknowledged by developer.
(Tue, 04 Nov 2014 21:21:09 GMT) (full text, mbox, link).
Message #37 received at 767359-close@bugs.debian.org (full text, mbox, reply):
Source: lightdm
Source-Version: 1.10.3-3
We believe that the bug you reported is fixed in the latest version of
lightdm, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 767359@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Yves-Alexis Perez <corsac@debian.org> (supplier of updated lightdm package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 04 Nov 2014 21:58:15 +0100
Source: lightdm
Binary: lightdm lightdm-vala liblightdm-gobject-1-0 liblightdm-qt-3-0 liblightdm-gobject-dev liblightdm-qt-dev gir1.2-lightdm-1
Architecture: source amd64
Version: 1.10.3-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>
Changed-By: Yves-Alexis Perez <corsac@debian.org>
Description:
gir1.2-lightdm-1 - Typelib file for liblightdm-1
liblightdm-gobject-1-0 - simple display manager (gobject library)
liblightdm-gobject-dev - simple display manager (gobject development files)
liblightdm-qt-3-0 - simple display manager (Qt library)
liblightdm-qt-dev - simple display manager (Qt development files)
lightdm - simple display manager
lightdm-vala - simple display manager (Vala files)
Closes: 767359
Changes:
lightdm (1.10.3-3) unstable; urgency=medium
.
* debian/patches:
- 06_change-user-dirs edited, don't use /var/lib/lightdm directly (it
seems to confuse lightdm and break .dmrc saving) but use
/var/lib/lightdm/data and create it at runtime. closes: #767359
Checksums-Sha1:
c23d81749301a7913948b1a1b333f101101cd3f0 2393 lightdm_1.10.3-3.dsc
4a454bcc3975186b46048f12ff1cfaabe1cd4458 36620 lightdm_1.10.3-3.debian.tar.xz
4ce640bc42276c9405e973a999d1db979a424c3c 155086 lightdm_1.10.3-3_amd64.deb
e0fff32aa4c160d8a31b002b5efb8c2089678cba 21648 lightdm-vala_1.10.3-3_amd64.deb
057e896a251a86f0447006dce8127997c8bb0e9a 50422 liblightdm-gobject-1-0_1.10.3-3_amd64.deb
080eeb3d2cbedff8c8bf1e008615b66ddc2bbbf9 50418 liblightdm-qt-3-0_1.10.3-3_amd64.deb
a526b8d31bc1b4466857b81ddc730601e4c3a1be 75750 liblightdm-gobject-dev_1.10.3-3_amd64.deb
14d5ea22fb3922adc98b4da758c7eb0de253d6b3 50784 liblightdm-qt-dev_1.10.3-3_amd64.deb
8f8d441d3dd3cad026627d68851d12f0b28f376d 23558 gir1.2-lightdm-1_1.10.3-3_amd64.deb
Checksums-Sha256:
d2827bb075e50648052e916e7ddf41ce56f7a75209849e18f684f217406d7576 2393 lightdm_1.10.3-3.dsc
b49a7d35a783fbcd68e4acb92c59276a867100c768c2fbcf3efccec219f3123a 36620 lightdm_1.10.3-3.debian.tar.xz
f4c8f54fa40abe23a9b91be22ea0c9e9e2884df007f52fc4d55fe68236e30c2f 155086 lightdm_1.10.3-3_amd64.deb
d5275cddcd393d5ce728f3e9c96ad64667502ef2a14c342a3660d87c58ee48ae 21648 lightdm-vala_1.10.3-3_amd64.deb
ddcf169e12b4ff7cca2deae8930dc5a4e29d11835b8ee8c89ad5e547d953c9b4 50422 liblightdm-gobject-1-0_1.10.3-3_amd64.deb
334825456ca267eac6bd7e59e63e23dc6ce3e9584529ba8b60153406db09e8b4 50418 liblightdm-qt-3-0_1.10.3-3_amd64.deb
6ffefd55e853fbab5ecc65d0c439eaad4e802cf7f6a92155b6864e3a6ad3e213 75750 liblightdm-gobject-dev_1.10.3-3_amd64.deb
2934c5a91a1da38a8cd6e10a1c85432ba9c8390c1bcf2f52e7ce88ebb6f542aa 50784 liblightdm-qt-dev_1.10.3-3_amd64.deb
b31233a5213546834847d290d85e314330fda4b5f8aafa78744004b10406df24 23558 gir1.2-lightdm-1_1.10.3-3_amd64.deb
Files:
99d9280ba53c05ff71f44de44672b08b 2393 x11 optional lightdm_1.10.3-3.dsc
69cf0c376303bbe06e4f4bd8d7d907eb 36620 x11 optional lightdm_1.10.3-3.debian.tar.xz
5261ff1cb2523adae81926028af86440 155086 x11 optional lightdm_1.10.3-3_amd64.deb
e38747a1347732e5711bc395a1f1bb55 21648 x11 optional lightdm-vala_1.10.3-3_amd64.deb
c4ad8e2a1d7a3f567f24c2f25f8c6973 50422 libdevel optional liblightdm-gobject-1-0_1.10.3-3_amd64.deb
13865db6954ee0db88b61c500169789f 50418 libdevel optional liblightdm-qt-3-0_1.10.3-3_amd64.deb
b0891a732196c229b42a3dab04ad739f 75750 libdevel optional liblightdm-gobject-dev_1.10.3-3_amd64.deb
b0fab4c6c85ebb54588deb2b48cc2238 50784 libdevel optional liblightdm-qt-dev_1.10.3-3_amd64.deb
8b8c12cbb9d6f631a8cd7f8574fc6678 23558 libs optional gir1.2-lightdm-1_1.10.3-3_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCgAGBQJUWT9iAAoJEG3bU/KmdcClcBAIAKNxJ3+ELa396MmMWdwBW+6G
KXI0VxKFtbJsYRN3Zuvszqt1wXM64WDZz4A6Jp9RlZhHCvBq1nXoeyl8MmyVEsgp
78Z0H3KY1K7DnqIVx2QnRi4j7WPgXLj0ZUhH9r3cC999Fufns+QBCMunhuMqiiRJ
B0pmvsQr+0QZcTzlOAyPWKt30nI3c1qp4UcDFxP2YAv7rO2t3n5kE4V98XFe1tBr
tuSbJqoRqthnvtYZI5GPaaF8mEHS3YkQFpcPD56yaIaUPrSrn+bx9T/xysKZbOQ5
8PVcxygcrwRYTb+NMinfMVU2ZV2Ooun7Hv/wbQUpxx9IRAYPQ1do08kwtT1NwBU=
=M5Y2
-----END PGP SIGNATURE-----
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>:
Bug#767359; Package lightdm.
(Wed, 05 Nov 2014 16:21:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Patrick Häcker <pat_h@web.de>:
Extra info received and forwarded to list. Copy sent to Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>.
(Wed, 05 Nov 2014 16:21:04 GMT) (full text, mbox, link).
Message #42 received at 767359@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Thanks for fixing that bug.
I just wanted to add, that version 1.10.3-3 also fixes the bug that the
selected user is not remembered anymore (I was just going to report that
one). So if anyone wonders how to get rid of that bug, just install 1.10.3-3.
Kind regards
Patrick
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 16 Dec 2014 07:29:31 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jan 6 21:11:49 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.