summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>2012-06-30 22:08:03 +0300
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2012-07-05 20:07:10 +0300
commit07d994a035ffadf17051bb0e424c2e36d9cb44da (patch)
tree0f232be00d14e5a6e8c2f341441df4fec22f7006
parentc54ae478aa2b9e6dd66434ce1d83cd6dddf1d827 (diff)
vm-creator: Automatically start saved installations
If Boxes was quit while a domain was under installation, we should awake the domain from the saved state next time Boxes is launched. https://bugzilla.gnome.org/show_bug.cgi?id=678894
-rw-r--r--src/vm-creator.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index e55cb6f..f8852c5 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -90,6 +90,9 @@ private class Boxes.VMCreator {
debug ("'%s' has saved state, no need for post-installation setup on it", machine.name);
// This means the domain was just saved and thefore this is not yet the time to take any post-install
// steps for this domain.
+ if (VMConfigurator.is_install_config (machine.domain_config))
+ domain.start_async.begin (0, null);
+
return;
}