mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
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:
parent
fb0fea4cdf
commit
f55e27674b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user