ishcherb / rpms / mcomix

Forked from rpms/mcomix 6 years ago
Clone
Mamoru Tasaka 759ce71
--- mcomix-0.92/mcomix/constants.py.disp	2011-05-20 04:22:23.000000000 +0900
Mamoru Tasaka 759ce71
+++ mcomix-0.92/mcomix/constants.py	2011-08-21 23:26:06.000000000 +0900
Mamoru Tasaka 759ce71
@@ -80,6 +80,10 @@
Mamoru Tasaka 759ce71
     # Missing GTK is already handled in mcomixstarter.py,
Mamoru Tasaka 759ce71
     # but this file is imported first, so ignore exceptions here.
Mamoru Tasaka 759ce71
     pass
Mamoru Tasaka 759ce71
+except RuntimeError:
Mamoru Tasaka 759ce71
+    # On Fedora's rpmbuild. DISPLAY is always unset and Fedora's
Mamoru Tasaka 759ce71
+    # gtk fails to import without DISPLAY, ignore for now
Mamoru Tasaka 759ce71
+    pass
Mamoru Tasaka 759ce71
 
Mamoru Tasaka 759ce71
 
Mamoru Tasaka 759ce71
 # vim: expandtab:sw=4:ts=4