mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-13 13:17:57 +03:00
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:
parent
1abd03ed80
commit
da71b2ec5c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user