Introduce User Switcher plasmoid
Review Request #125678 - Created Oct. 17, 2015 and submitted
|Kai Uwe Broulik|
It is prety common in other desktop environments to have something that allows switching between users and logout/shutdown quickly. It is inspired by the Fast User Switch plasmoid from kde-apps.org 
When the applet opens, it updates. It grows a maximum of half the screen height, should there be more users currently logged in, the list can be scrolled. Switching users works, both with and without locking the screen, depending on user's settings. Opening new sessions, locking the screen and shutting down also work.
The applet doesn't have any settings, the label probably needs tweaking so its sizing policy is similar to the digital clock so the two look reasonable next to each other.
Nice user switcher. Question is whether or not the user icon is to show in the panel (clutters IMHO, so done right) and what happens when you click one of the global functions. The Lock/Logout plasmoid shows a confirmation bar with reboot, shut down, and log out (the latter enabled by default). Is this bar shown for leave? And actually I'd rather keep plasmoids simple and remove all features that are not directly related to user sessions. So it should be taken into consideration to remove Lock and Leave... (maybe add just logout).
And last but not least you could think about the sort order. If there are really more than one instance of the same user as in your screenshot, the current user may want to switch between own instances.
PS: New users may expect such a dialog for activities. Does mixing sessions and activities make sense?
Nice! But I wonder if wouldn't be better to have the whole plasmoid as a scrolling list instead of just the users scrolling and not the rest, it looks a bit werird. I know that technically the user list and the other functions are different things, but that shouldn't matter to the user (the other buttons could be in the footer of the listview)
- Add option to display full username (default) or login name
- Add option to show only name (default), only face (is "avatar" correct term?), or both
- Hide TTY number and X display by default (can be enabled in settings)
- Applet tooltip shows user icon and "You are logged in as 'name'"
- Size label similar to digital clock
Vertical panel layout needs tweaking