summaryrefslogtreecommitdiff
path: root/virt-manager
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2015-12-03 15:54:52 -0500
committerCole Robinson <crobinso@redhat.com>2015-12-06 15:41:49 -0500
commitfebe0abdd277a0e5cfbd8665c579ef8161c975b7 (patch)
tree3fa373e90b9da90a11d68df0a0b323b50ff62d3d /virt-manager
parent7ef17138da7e9a7908d1e973f26474ace939e3dd (diff)
downloadvirt-manager-febe0abdd277a0e5cfbd8665c579ef8161c975b7.tar.gz
virt-manager: Drop manual dbusapi, use GtkApplication
So I was confused here and completely missed that GtkApplication is meant to handle the common case of invoking actions in an existing app instance. So drop the manual dbus server and use the simpler Gtk support. Fix a bunch of other errors in this area too
Diffstat (limited to 'virt-manager')
-rwxr-xr-xvirt-manager6
1 files changed, 2 insertions, 4 deletions
diff --git a/virt-manager b/virt-manager
index 63f867c8..7a2105f1 100755
--- a/virt-manager
+++ b/virt-manager
@@ -252,11 +252,9 @@ def main():
LibvirtGLib.init(None)
LibvirtGLib.event_register()
- from virtManager.dbusapi import StartupAPI
- api = StartupAPI()
+ engine = vmmEngine()
- api.run_cli_command(options.uri, show_window, domain)
- api.start(options.skip_autostart)
+ engine.start(options.uri, show_window, domain, options.skip_autostart)
if __name__ == "__main__":