Bug 402081 - Add "Shut down" and "Reboot" options as well
Summary: Add "Shut down" and "Reboot" options as well
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Lock/logout (show other bugs)
Version: master
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2018-12-13 08:48 UTC by Timon Zielonka
Modified: 2020-12-21 17:17 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.21


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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