From 8322f752204c7c26a4e9d68b6c5b02ec43a4dab6 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 8 Feb 2010 11:54:21 -0500 Subject: [PATCH] Abide gtk cmdline options By parsing opts later, GTK seems to auto parse and abide options like --sync. --- src/virt-manager.py.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/virt-manager.py.in b/src/virt-manager.py.in index 10b5cfefb..5bdb8e323 100755 --- a/src/virt-manager.py.in +++ b/src/virt-manager.py.in @@ -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 " +