mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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:
parent
f5562e77ae
commit
30cc70ccf4
@ -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:
|
||||||
|
@ -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__":
|
||||||
|
Loading…
Reference in New Issue
Block a user