Comment 21 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

The shutdown is caused by the commit of https://bugzilla.gnome.org/show_bug.cgi?id=688076.

gnome-session-bin handle the first shutdown request, and change to QUERY_END_SESSION_PHASE, but the second shutdown request arrive before it open the endSessionDialog, and user not yet confirm to shutdown.

The second shutdown request is handled in QUERY_END_SESSION_PHASE, which goes to prepare shutdown by the commit mentioned above.

Therefore, I create a patch to check if the shutdown has been confirmed by the user then process the prepare shutdown. It seems can fix this issue.