This 'bug' is the result of defaulting to shutdown as logging out method, with a timer activated by default. The repro below uses actions managed by the power settings, but I suppose this dialog may be called by other methods. Reproducible: Always Steps to Reproduce: 1. in power settings, set up the power button action as displaying the logout dialog 2. press power button Actual Results: A dialog is displayed saying that the system will shut down within 30 seconds... and if no further user action happens, it will indeed shut down. The behavior I describe especially irks me because in my use case, the following typical scenario often happens: 1. I use the power button to wake up my system from suspend 2. since I use an external monitor that is not always recognized on wake up, not seeing anything on screen, I sometimes believe the system is still sleeping (some bugs/wishes should also be filled for the display configuration tool, I am afraid!) 3. so I press the power button again... 4. since I still cannot see the infamous logout dialog, this results in an unexpected shut down when the timer expires Expected Results: Since the dialog was called (in this context) with no special instruction as to whether the system should shut down, reset, just log out or whatever, there is no reason to shut down if the user did not explicitly ask for this. I believe it is fine to display this dialog, but completely not fine to start this timer and, worst, defaulting to the less harmless way of logging out. Please do not automatically start the timer when the dialog is called in this way! (i.e.: you did not press an explicit "shut down" button).
Re-assigning to Plasmashell's look and feel package which is responsible for the shutdown dialog including the countdown.
On Wayland if the screen is turned off, the button press will wake up the screen without triggering the shutdown action.