Wrong session marked as selected in session dropdown on login screen

Bug #1749481 reported by Olivier Tilloy
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gdm
Fix Released
Medium
gdm3 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

My usual session is "Ubuntu" (/usr/share/xsessions/ubuntu.desktop). When I reboot my machine, on the login screen if I click the cog icon to show the list of sessions available, a dot is displayed to the left of the first session in the list ("GNOME"), instead of "Ubuntu".

If I don't click on a session to change it, when I log in the session used is "Ubuntu" as expected, not "GNOME".

So the greeter fails to reflect which session is actually selected when first displaying the dropdown, but internally it doesn't mess up with session selection.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gdm3 3.26.2.1-2ubuntu2
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Feb 14 16:00:38 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-07-02 (591 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: gdm3
UpgradeStatus: Upgraded to bionic on 2018-01-29 (16 days ago)

Revision history for this message
Olivier Tilloy (osomon) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :
Changed in gdm:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gdm3 (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Rstrode (rstrode) wrote :

This reverts commit 572a19324b75cc1f1b2db4908e2d7c9f06e4e335.

It turns out we need this call for more than just the session type,
we also need to it to inform the greeter about the default session
to use.

Revision history for this message
In , Rstrode (rstrode) wrote :

Created attachment 368580
Revert "session: don't call gdm_session_defaults_changed from setup"

Revision history for this message
In , Rstrode (rstrode) wrote :

Attachment 368580 pushed as f4f7b69 - Revert "session: don't call gdm_session_defaults_changed from setup"

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Adding a gnome-session task just in case that could be part of the problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-session (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Rstrode (rstrode) wrote :

*** Bug 793456 has been marked as a duplicate of this bug. ***

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Upstream thinks is fixed in gdm3 3.27.90 which we have in Ubuntu 18.04 now. Can you confirm?

Changed in gdm3 (Ubuntu):
status: Confirmed → Incomplete
Changed in gnome-session (Ubuntu):
status: Confirmed → Incomplete
Changed in gdm:
status: Confirmed → Invalid
Revision history for this message
Erick Brunzell (lbsolost) wrote :

Works properly to boot both the flashback w/metacity and GNOME Classic sessions now.

Revision history for this message
AsciiWolf (asciiwolf) wrote :

That's weird. Still the same issue on my Ubuntu 18.04 system when using gdm 3.27.90.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

I tested again this AM beginning with a fresh install of 20180227, applying updates, and then installing gnome-panel. During installation I chose to auto-login so after initially logging out and selecting flashback w/metacity I still booted the default DE.

But that was expected behavior based on prior testing of Bionic. So I rebooted, then tried logging out again and selecting flashback w/metacity and still I just get the default DE. Next I opened the Users window and turned auto-login off, rebooted and selected flashback w/metacity but still I just get the default DE.

Those initial results from last night were based on a slightly older install where I had been using lightdm with the unity greeter, but I purged lightdm and then autoremoved all leftover depends. Clearly that didn't give me a clean enough install to produce a reliable result.

Bottom line = it's not fixed.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

This may or may not be worth mentioning but the reason I totally purged lightdm was just using dpkg to change to gdm3 returns an error:

lance@lance-conroe:~$ sudo dpkg-reconfigure gdm3
[sudo] password for lance:
gdm.service is not active, cannot reload.
invoke-rc.d: initscript gdm3, action "reload" failed.

Of course I could also have run sudo dpkg-reconfigure lightdm and accomplished the same thing.

Revision history for this message
In , Rstrode (rstrode) wrote :

*** Bug 793948 has been marked as a duplicate of this bug. ***

Revision history for this message
AsciiWolf (asciiwolf) wrote :

It looks like it is now even more broken. Selecting GNOME session sometimes log me into the Ubuntu session instead. Weird.

Revision history for this message
AsciiWolf (asciiwolf) wrote :

Seems to be fixed in Ubuntu 18.04.

Revision history for this message
AsciiWolf (asciiwolf) wrote :

Is this issue still happening? I think it was fixed in 18.04.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes the upstream bug link (I just fixed up) is showing it was fixed in gdm3 version 3.27.91, so before 18.04 was released.

Changed in gdm:
importance: Medium → Unknown
status: Invalid → Unknown
Changed in gdm3 (Ubuntu):
status: Incomplete → Fix Released
no longer affects: gnome-session (Ubuntu)
Changed in gdm:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.