Fix FileChooser hangs on F18 KDE (bz 880781)

We need to move the icon_theme lookup to after the fork. My guess is
that the looku ints inits some internal gtk dbus state which is then
no longer valid after we fork.
This commit is contained in:
Cole Robinson 2013-01-06 13:09:48 -05:00
parent 1abd03ed80
commit da71b2ec5c

View File

@ -316,10 +316,6 @@ def main():
import libvirt
libvirt = virtManager.module_trace.wrap_module(libvirt)
# Add our icon dir to icon theme
icon_theme = gtk.icon_theme_get_default()
icon_theme.prepend_search_path(icon_dir)
gobject.threads_init()
import dbus
@ -355,6 +351,10 @@ def main():
# Ignore SIGHUP, otherwise a serial console closing drops the whole app
signal.signal(signal.SIGHUP, signal.SIG_IGN)
# Add our icon dir to icon theme
icon_theme = gtk.icon_theme_get_default()
icon_theme.prepend_search_path(icon_dir)
from virtManager.engine import vmmEngine
gtk.window_set_default_icon_name(appname)