virt-manager: Drop --no-conn-autostart

It was mildly interesting back before libvirt supported threads but
I don't think anyone cares about it now.
This commit is contained in:
Cole Robinson 2018-03-16 14:19:35 -04:00
parent f5562e77ae
commit 30cc70ccf4
2 changed files with 5 additions and 10 deletions

View File

@ -48,14 +48,10 @@ List debugging output to the console (normally this is only logged in
Don't fork C<virt-manager> off into the background: run it blocking the Don't fork C<virt-manager> off into the background: run it blocking the
current terminal. Useful for seeing possible errors dumped to stdout/stderr. current terminal. Useful for seeing possible errors dumped to stdout/stderr.
=item B<--no-conn-autostart>
Don't autostart any libvirt connections when launching C<virt-manager>.
=item B<--show-DIALOG-WINDOW> =item B<--show-DIALOG-WINDOW>
Display the corresponding C<DIALOG-WINDOW> when launching C<virt-manager>. This Display the corresponding C<DIALOG-WINDOW> when launching C<virt-manager>.
function implies --no-conn-autostart and the manager window will not be shown Connection autostart is skipped, and the manager window will not be shown
at startup in this case. at startup in this case.
The following C<DIALOG-WINDOW> options are currently available: The following C<DIALOG-WINDOW> options are currently available:

View File

@ -165,8 +165,6 @@ def parse_commandline():
default=False) default=False)
parser.add_argument("--no-fork", action="store_true", parser.add_argument("--no-fork", action="store_true",
help="Don't fork into background on startup") help="Don't fork into background on startup")
parser.add_argument("--no-conn-autostart", action="store_true",
dest="skip_autostart", help="Do not autostart connections")
parser.add_argument("--spice-disable-auto-usbredir", action="store_true", parser.add_argument("--spice-disable-auto-usbredir", action="store_true",
dest="usbredir", help="Disable Auto USB redirection support") dest="usbredir", help="Disable Auto USB redirection support")
@ -274,8 +272,9 @@ def main():
if show_window and options.uri is None: if show_window and options.uri is None:
raise RuntimeError("can't use --show-* options without --connect") raise RuntimeError("can't use --show-* options without --connect")
skip_autostart = False
if show_window: if show_window:
options.skip_autostart = True skip_autostart = True
# Hook libvirt events into glib main loop # Hook libvirt events into glib main loop
LibvirtGLib.init(None) LibvirtGLib.init(None)
@ -292,7 +291,7 @@ def main():
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT,
_sigint_handler, None) _sigint_handler, None)
engine.start(options.uri, show_window, domain, options.skip_autostart) engine.start(options.uri, show_window, domain, skip_autostart)
if __name__ == "__main__": if __name__ == "__main__":