Bug 393135 - no confirm dialog for shutdown on power button
Summary: no confirm dialog for shutdown on power button
Status: RESOLVED INTENTIONAL
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-14 15:15 UTC by miklos
Modified: 2018-10-18 20:31 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description miklos 2018-04-14 15:15:14 UTC
In KDE4 when the action for the power button was set to shutdown it showed a confirmation dialog. In KDE5 the machine shuts down immediately. This is especially infuriating when there is a power button on the keyboard, and it gets pressed accidentally.
Comment 1 David Edmundson 2018-04-14 17:54:20 UTC
Plasma 5 does too.

Please check whether

system settings -> startup and shutdown -> desktop session -> confirm logout is checked

and output of qdbus local.org_kde_powerdevil

then reset this bug status to unconfirmed
Comment 2 miklos 2018-04-14 20:43:21 UTC
Yep, confirm logout is checked. When I try to logout there is a confirmation dialog. When I select shutdown in Kickoff there is a confirmation dialog. When I accidentally press the power button it shuts down immediately.
Comment 3 Kai Uwe Broulik 2018-04-16 05:56:57 UTC
Please check whether System Settings → Power Management → "When power of button is pressed" is set to "show logout dialog"
Comment 4 miklos 2018-04-16 22:18:12 UTC
Let me see if I understand it correctly. When "System Settings → Power Management → When power button is pressed" is set to "Shut down" it deliberately shuts down immediately. If I want a confirmation dialog, I need to set it to "Prompt log out dialog", and set "Startup and Shutdown" → "Desktop Session" → "Default Leave Option" to "Turn Off Computer". Seems a bit convoluted.
Comment 5 Patrick Silva 2018-04-22 20:03:01 UTC
Yes, my Arch Linux (plasma 5.12.4) also turns off my computer immediately if

system settings -> startup and shutdown -> desktop session -> confirm logout 

is checked

and

System Settings → Power Management → "When power of button is pressed"
is set to "Shut down"
Comment 6 Nate Graham 2018-10-18 20:26:40 UTC
It sounds like 
System Settings → Power Management → "When power of button is pressed" should respect the value of system settings → startup and shutdown → desktop session → "Confirm logout" rather than having its own independent setting.
Comment 7 Nate Graham 2018-10-18 20:31:53 UTC
Then again, I see see the value in it. You might want to have the machine shut down immediately when you trigger this from the UI, but not when you accidentally brush the power button. In fact, that's exactly my personal use case: I uncheck "Confirm logout", but have my laptop's easy-to-accidentally-press power button set to show the confirmation screen rather than immediately turning off the machine.

Now that I think about it, it has to stay this way.