on xenial help sign in
Have the greeter fallback to default session if user has never selected one
commit2c8cfc968ff98b049194d230fcb10dc2d67f57ef authorJosh Arenson <joshua.arenson@canonical.com> dateMon 20 Mar 2017, 17:25 (10 years ago) parent28da875
1 file changed+6
qml/Greeter/WideView.qml+6
qml/Greeter/WideView.qml+6
@@ -142,6 +142,12 @@ FocusScope {
142142
143143 function setCurrentSession() {
144144 currentSession = LightDMService.users.data(currentIndex, LightDMService.userRoles.SessionRole);
145+
146+ // If the user has never selected a session
147+ // LightDM returns an empty string
148+ if (!currentSession.length) {
149+ currentSession = LightDMService.greeter.defaultSession
150+ }
145151 }
146152 }
147153