[gnome-boxes] express: Set SPICE password when doing
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] express: Set SPICE password when doing
- Date: Thu, 5 Jan 2012 19:01:02 +0000 (UTC)
commit 866c2800cdb458bfc2b2edd2f8f15fe86cc76020
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Dec 28 19:18:05 2011 +0200
express: Set SPICE password when doing
Use the provided password for user authentication as SPICE connection
password as well.
https://bugzilla.gnome.org/show_bug.cgi?id=666368
src/unattended-installer.vala | 4 ++++
src/vm-configurator.vala | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 6b0d212..4fc47f2 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -22,6 +22,10 @@ private abstract class Boxes.UnattendedInstaller: InstallerMedia {
get { return username_entry.text; }
}
+ public string password {
+ owned get { return password_entry.text; }
+ }
+
public string hidden_password {
owned get {
return password_entry.text.length > 0 ?
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 42ef929..1883372 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -36,6 +36,12 @@ private class Boxes.VMConfigurator {
var graphics = new DomainGraphicsSpice ();
graphics.set_autoport (true);
+ if (install_media is UnattendedInstaller) {
+ var unattended = install_media as UnattendedInstaller;
+
+ if (unattended.express_install && unattended.password != "")
+ graphics.set_password (unattended.password);
+ }
domain.add_device (graphics);
set_video_config (domain, install_media);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]