unity-greeter default selected session icon (ubuntu) does not reflect the default that is in lightdm
Bug #978428 reported by
Matt Fischer
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity Greeter |
Fix Released
|
Undecided
|
Unassigned | ||
unity-greeter (Ubuntu) |
Fix Released
|
Low
|
Michael Terry | ||
Precise |
Fix Released
|
Low
|
Unassigned |
Bug Description
I have an image where I've modified lightdm.conf to change the default session (user-session=) to something other than Ubuntu. When that image boots, before anyone has logged in, the Unity Greeter shows the session icon as Ubuntu. When I login it is running the correct session, just the icon is showing that the incorrect session has been chosen. To repro this, make a new session file or set the default to something like gnome in lightdm.conf.
My guess is that the code that picks the icon to show isn't checking what the default session is when the user has not previously logged in.
summary: |
- unity-greeter default selected session (unity) does not reflect the - default that is in lightdm + unity-greeter default selected session icon (ubuntu) does not reflect + the default that is in lightdm |
Changed in unity-greeter (Ubuntu): | |
assignee: | nobody → Michael Terry (mterry) |
tags: |
added: verification-done removed: verification-needed |
Changed in unity-greeter: | |
status: | New → Fix Released |
To post a comment you must log in.
I poked through the code some and here are my findings:
The greeter gets the default session from here: greeter. vala: user_list. default_ session = greeter. default_ session_ hint;
src/unity-
When I use GI in python, I always get None for that hint, whether it's in a VM or on my precise-based dev box. The other hints work fine:
Type "help", "copyright", "credits" or "license" for more information. session_ hint() users_hint( )
>>> from gi.repository import LightDM
>>> g = LightDM.Greeter()
>>> print g.get_default_
None
>>> print g.get_hide_
False
So I'm starting to think that perhaps the hint is not set properly. I know that user-session is being properly read from the config file, else the session I set wouldn't be running. I don't understand the interaction between the user's preference (last session) and the default session from the config file to make a reasonable stab at a fix at this time.