Bug 402081

Summary: Add "Shut down" and "Reboot" options as well
Product: [Plasma] plasmashell Reporter: Timon Zielonka <timon>
Component: Lock/logoutAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: claudius.ellsel, kde, kde, nate, timon
Priority: NOR Keywords: usability
Version: master   
Target Milestone: 1.0   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.21

Description Timon Zielonka 2018-12-13 08:48:05 UTC
SUMMARY
With a right click on the lock/logout applet the user should also have the possibility to change the settings for "leave". 

STEPS TO REPRODUCE
1. right click on the lock/logout applet 
2. in "Actions" there is only Leave, Lock, Switch user, Hibernate and Suspend


OBSERVED RESULT
reboot and shutdown is missing

EXPECTED RESULT
What "leave" should also be changeable, Yes I can change this in System Setting, Startup and Shutdown and Desktop Session, but it took me a while to find out and I see no reason, why this setting should not be changeable from the applet. 
By the way, I would suggest to set the default to "Turn of computer" to save energy, but I guess this is a different story.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 18.10
KDE Plasma Version: 5.13.5
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
Comment 2 David Edmundson 2020-12-18 09:37:03 UTC
Git commit 2210d9489dc5d02dbe6145d8bc64e57af4f15a51 by David Edmundson.
Committed on 18/12/2020 at 09:36.
Pushed by davidedmundson into branch 'master'.

[applets/lock_logout] Add explicit options for logout and reboot

With the UI changes in Kicker and the logout screen over the past years
the concept of "leave" with a default shutodwn action has gotten muddy.

Kicker shows all the options explicitly, the logout applet has got left
behind, and is currently a bit broken. The leave option currently always
shutdown regardless.

It's perfectly valid to want to have a short applet shortcut to log out
sometimes, and shutdown in other times.

This patch adds explicit options for logout and reboot, and clarified
the UI presentation of shutdown to match what it currently actually
does.
Related: bug 424426

M  +8    -0    applets/lock_logout/contents/config/main.xml
M  +18   -5    applets/lock_logout/contents/ui/ConfigGeneral.qml
M  +14   -2    applets/lock_logout/contents/ui/data.js

https://invent.kde.org/plasma/plasma-workspace/commit/2210d9489dc5d02dbe6145d8bc64e57af4f15a51