virt-manager: Avoid segfault on unset DISPLAY

Gtk.Window() init was crashing the app. Instead use Gtk.init() for
testing that things are working okay
This commit is contained in:
Cole Robinson 2016-05-17 17:26:07 -04:00
parent fb0fea4cdf
commit f55e27674b
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def _import_gtk(leftovers):
sys.exit(1)
# This will error if Gtk wasn't correctly initialized
Gtk.Window()
Gtk.init()
globals()["Gtk"] = Gtk
import virtManager.config