Add pretty user switcher

Review Request #124585 - Created Aug. 1, 2015 and submitted

Kai Uwe Broulik
plasma, usability

This adds a user switcher dialog borrowing elements from the lock screen and log out dialog. I never understood why KRunner was used for that.

It is not yet hooked up to the system (would make KRunner's "switchUser" interface forward that to KSMServer so everybody using it (eg. kickoff) would continue to work without adjustments). To test it run qdbus org.kde.ksmserver /KSMServer openSwitchUserDialog

When it opens it defaults to "New Session", from an interaction POV the list view behaves like the one on the lock screen.

It locks the screen when switching users only when the user has enabled the lock screen (might need a separate option for that?) That unconditional locking on session switching has turned out to be a major annoyance.

Looks pretty, switching to a new or existing session works.

Btw, weren't we able to click outside the dialog to dismiss it in 4.x? Seems broken for the logout dialog as well.


Kai Uwe Broulik
Heiko Tietze
David Edmundson
Kai Uwe Broulik
Andreas Kainz
Kai Uwe Broulik
Kai Uwe Broulik
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit fe97f4272432de0ad563fe32aeaaaaff6a8dee84 by Kai Uwe Broulik to branch master.