[firstboot] [PATCH] Use python-meh's text UI instead of GUI causing crash (#849118)
Vratislav Podzimek
vpodzime at redhat.com
Tue Aug 21 12:29:32 UTC 2012
python-meh has been ported to Gtk3 and thus cannot be imported to firstboot's
environment running Gtk2.
---
progs/firstboot | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/progs/firstboot b/progs/firstboot
index 1ad7e31..3023fac 100755
--- a/progs/firstboot
+++ b/progs/firstboot
@@ -101,18 +101,19 @@ if __name__ == '__main__':
# these modules import gtk, so we need to have a display first
import firstboot.interface
- import meh.ui.gui
+ import meh.ui.text
# XXX set up the interface
config.frontend = frontend
config.interface = firstboot.interface.Interface(opts.autoscreenshot,
opts.test)
- # XXX set up meh
+ # XXX set up meh with Text UI, because importing it's Gtk3 GUI would
+ # cause crash
handler_conf = meh.Config(programName='firstboot',
programVersion='@VERSION@')
handler = meh.handler.ExceptionHandler(handler_conf,
- meh.ui.gui.GraphicalIntf(),
+ meh.ui.text.TextIntf(),
meh.dump.ExceptionDump)
handler.install(config)
--
1.7.11.2
More information about the anaconda-patches
mailing list