Package: debgtd Version: 1.2.1-1 Severity: wishlist Tags: patch Hi,
It is customary for PyGTK programs to catch and subsequently hide the rather ugly and harmless KeyboardInterrupt traceback that occurs when you ^C the program. This is particularly useful for users of window managers that will generally show a program's stdout and stderr. Patch attached. Regards, -- Chris Lamb, UK [EMAIL PROTECTED] GPG: 0x634F9A20
diff -urNad debgtd-1.2.1.orig/debgtd.py debgtd-1.2.1/debgtd.py --- debgtd-1.2.1.orig/debgtd.py 2008-08-04 06:18:11.000000000 +0100 +++ debgtd-1.2.1/debgtd.py 2008-08-04 06:22:18.000000000 +0100 @@ -14,6 +14,8 @@ # # see "LICENSE" for the full GPL-2. +import sys + from debgtd.controller import Controller from debgtd.gui import Gui @@ -21,5 +23,10 @@ controller = Controller() gui = Gui(controller) controller.add_view(gui) - controller.go() - controller.save_to_file() + try: + try: + controller.go() + except KeyboardInterrupt: + sys.exit(1) + finally: + controller.save_to_file()
signature.asc
Description: PGP signature