<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, Plasma: Design.<br />broulik set the repository for this revision to rPLASMAWORKSPACE Plasma Workspace.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2957" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When choosing "New Session" you get dumped on the login screen where there's no discoverable way (Ctrl+Alt+Fsomething isn't discoverable) to get back to the existing session and typing the password to log in will actually log the user in twice. This would essentially lock a novice user out from his or her session even if the screen was locked because "New Session" is accessible from there as well.</p>
<p>This patch changes the "Login" button with password field to a "Switch To" button in case there is already a graphical session of this user running.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Locked screen, chose "New Session", got a "Switch To" button for my user which upon clicking dropped me back into my existing session.</p>
<p>A difficulty we have is that when the session goes away, the login screen doesn't update because we never reload() the model - this is also true for the "Switch Session" button on the lock screen which only appears if tehre's another session. Is this something that is likely? Maybe somehow we could call reload() whenever the login screen gets switched to?</p>
<p><a href="https://phabricator.kde.org/F355086" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F355086: Screenshot_20161006_101031.png</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rPLASMAWORKSPACE Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2957" rel="noreferrer">https://phabricator.kde.org/D2957</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>components/sessionsprivate/sessionsmodel.cpp<br />
components/sessionsprivate/sessionsmodel.h<br />
sddm-theme/Login.qml</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>broulik, Plasma, Plasma: Design<br /><strong>Cc: </strong>plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>