GNOME Bugzilla – Bug 771690
windows hang detection dialog had bad defaults
Last modified: 2016-09-20 07:56:09 UTC
When a windowed application hangs, gnome launches a dialog asking if user want to force close the application or wait the the application become available. This dialog is launched with bad defaults, if one closes it with the window decoration button or typing [ESC] key, the application is killed. It caused me to lose some work a few times when an application is a little slow to respond and I press [ESC] key to dismiss the force close dialog. This behavior is very counter intuitive. Expected behavior: - A clic on "kill" button, kills the hanging application. - A clic on "wait" button, closes the dialog and wait the application become available or show the dialog again after a timeout. - A clic on the dialog's "close" window decoration, closes the dialog and wait the application become available or show the dialog again after a timeout. - An [ESC] key press, closes the dialog and wait the application become available or show the dialog again after a timeout. For information, on my system (French locale), the dialog is launched via: zenity --question --display :0.0 --class mutter-dialog --title --text <big><b>« Hello World » ne répond pas.</b></big> Vous pouvez patienter un instant pour continuer ou forcer l'application à quitter définitivement. --ok-label _Attendre --cancel-label _Forcer à quitter --icon-name face-sad-symbolic --modal It is simple to test with a simple python script launched in a terminal -------------------------------------------------- #!/usr/bin/env python import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk class MyWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="Hello World") self.button = Gtk.Button(label="Click Here") self.button.connect("clicked", self.on_button_clicked) self.add(self.button) def on_button_clicked(self, widget): while True: pass win = MyWindow() win.connect("delete-event", Gtk.main_quit) win.show_all() Gtk.main() -------------------------------------------------- After a clic on "Click Here" button, this application hangs (eating CPU in infinite loop), clic on the "close" window decoration and gnome suggest to kill it after a few seconds. Please note that this bug was also reported downstream in Debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833848)
*** This bug has been marked as a duplicate of bug 737109 ***