@@ -142,6 +142,12 @@ FocusScope {
143 function setCurrentSession() {
143 function setCurrentSession() {
144 currentSession = LightDMService.users.data(currentIndex, LightDMService.userRoles.SessionRole);
144 currentSession = LightDMService.users.data(currentIndex, LightDMService.userRoles.SessionRole);
146+ // If the user has never selected a session
147+ // LightDM returns an empty string
148+ if (!currentSession.length) {
149+ currentSession = LightDMService.greeter.defaultSession