on xenial help sign in
Have the greeter fallback to default session if user has never selected one
2c8cfc9Josh Arenson
qml/Greeter/WideView.qml+6
@@ -142,6 +142,12 @@ FocusScope {
142
142
143 function setCurrentSession() {
143 function setCurrentSession() {
144 currentSession = LightDMService.users.data(currentIndex, LightDMService.userRoles.SessionRole);
144 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+ }
145 }
151 }
146 }
152 }
147
153