Merge lp:~robert-ancell/unity-greeter/double-authenticate into lp:unity-greeter
Status: | Merged |
---|---|
Approved by: | Robert Ancell |
Approved revision: | 1157 |
Merged at revision: | 1160 |
Proposed branch: | lp:~robert-ancell/unity-greeter/double-authenticate |
Merge into: | lp:unity-greeter |
Diff against target: |
27 lines (+2/-5) 2 files modified
src/greeter-list.vala (+1/-0) src/user-list.vala (+1/-5) |
To merge this branch: | bzr merge lp:~robert-ancell/unity-greeter/double-authenticate |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Terry (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Unity Greeter Development Team | Pending | ||
Review via email: mp+210529@code.launchpad.net |
Commit message
Fix the greeter authenticating twice when it starts.
This was due to it authenticating when the user list is created and then again when it is realized.
This is due to faulty code that needs to start the animation once the widget is realized.
I've hacked this by waiting for the realize for the first authenticate (since the realize must always occur in this case).
The existing code was buggy anyway because it would not even pick up user changes if the initial list was empty.
Description of the change
This bug was discovered by hitting a race condition in LightDM where the two sessions started in quick succession would cause the terminate of the first session to get misinterpreted and stopping the daemon.
While we now correctly handle this in the daemon we should fix the greeter to only authenticate once as there could potentially be other side-effects.
PASSED: Continuous integration, rev:1157 jenkins. qa.ubuntu. com/job/ unity-greeter- ci/38/ jenkins. qa.ubuntu. com/job/ unity-greeter- trusty- amd64-ci/ 21 jenkins. qa.ubuntu. com/job/ unity-greeter- trusty- armhf-ci/ 21
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- greeter- ci/38/rebuild
http://