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.
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.