Package: live-magic
Version: 0.3-1
Severity: wishlist
Tags: patch

If the display is not set, it would be nice, if live-magic would
not output 92 lines of errors to finally segfault. The attached
patch reduces the output to three lines and does sys.exit().
--- live-magic.orig	2008-07-08 17:27:14.000000000 +0200
+++ live-magic	2008-07-08 17:55:24.000000000 +0200
@@ -50,6 +50,10 @@
             return path
 
 if __name__ == "__main__":
+    try:
+        gtk.init_check()
+    except RuntimeError, e:
+        sys.exit('Error: %s. Exiting.' % str(e))
     m = Model()
     c = Controller(m, sys.argv[1:])
     v = View(c)

Reply via email to