Bug 394252

Summary: kiosk restrict suspend, hibernate, restart, poweroff
Product: [Plasma] Powerdevil Reporter: Harald Sitter <sitter>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: kde, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Harald Sitter 2018-05-14 13:56:11 UTC
It'd be handy to be able to kiosk restrict suspend, hibernate, restart, poweroff access (much like we can already control logout access).

My specific, fairly non-standard use case, is preventing live session ISO users from hibernating or suspending the live system as that is not particularly useful and may have unintended side effects (e.g. unlocking the session may proof tricky as the user doesn't actually know the password).

This may however also have obvious uses in actual KIOSK scenarios where the user may technically be able to initiate a power action, but disabling the functionality on a KDE-tech level might be enough to not have this cause any trouble.
Comment 1 Kai Uwe Broulik 2018-05-24 10:17:45 UTC
There's PolicyKit which can do this and is used everywhere. Adding a KIOSK check there would make things more complicated and add yet another variable to the "why cannot I do X" question.