Comment 30 for bug 1878351

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote : Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

gnome-session did handle those two events, and it goes to prepare_shutdown which is current result.
If the original implementation of https://bugzilla.gnome.org/show_bug.cgi?id=688076 is correct, then it is expected result, and we accept it.

Unless the commit of https://bugzilla.gnome.org/show_bug.cgi?id=688076 need to be tweaked to adjust two quick button press.

A debounce is mentioned by the maintainer, not what my first implementation, I thought original implemention need to do some adjustment for handling the case. You can check the maintainer's comment.
https://gitlab.gnome.org/GNOME/gnome-session/-/merge_requests/46#note_836061