mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-28 19:55:29 +03:00
Abide gtk cmdline options
By parsing opts later, GTK seems to auto parse and abide options like --sync.
This commit is contained in:
parent
2194107152
commit
8322f75220
@ -284,9 +284,6 @@ def main():
|
||||
setup_i18n()
|
||||
setup_pypath()
|
||||
|
||||
(options, ignore) = parse_commandline()
|
||||
setup_logging(options.debug)
|
||||
|
||||
# Urgh, pygtk merely logs a warning when failing to open
|
||||
# the X11 display connection, and lets everything carry
|
||||
# on as if all were fine. Ultimately bad stuff happens,
|
||||
@ -308,6 +305,9 @@ def main():
|
||||
raise RuntimeError(_("Unable to initialize GTK: %s") % str(e))
|
||||
warnings.resetwarnings()
|
||||
|
||||
(options, ignore) = parse_commandline()
|
||||
setup_logging(options.debug)
|
||||
|
||||
# Make sure we have a sufficiently new virtinst version, since we are
|
||||
# very closely tied to the lib
|
||||
msg = ("virt-manager requires the python-virtinst library version " +
|
||||
|
Loading…
Reference in New Issue
Block a user