[gnome-boxes] express: Don't set SPICE password



commit 433afad83b6fc13fcd7ee4133f7dc19b0268bd96
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Aug 9 21:30:33 2012 +0300

    express: Don't set SPICE password
    
    Our own created VMs are supposed to be private to user (at least by
    default) so there is no need to add password protection to display
    connection.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=680825

 src/installer-media.vala      |    1 -
 src/unattended-installer.vala |    7 -------
 src/vm-configurator.vala      |    1 -
 3 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/installer-media.vala b/src/installer-media.vala
index c13d543..27025c6 100644
--- a/src/installer-media.vala
+++ b/src/installer-media.vala
@@ -85,7 +85,6 @@ private class Boxes.InstallerMedia : GLib.Object {
         domain.add_device (disk);
     }
 
-    public virtual void setup_spice_config (DomainGraphicsSpice graphics) {}
     public virtual void populate_setup_vbox (Gtk.VBox setup_vbox) {}
     public virtual void check_needed_info () throws UnattendedInstallerError.SETUP_INCOMPLETE {}
 
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 6d9003e..6fb1e99 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -151,13 +151,6 @@ private abstract class Boxes.UnattendedInstaller: InstallerMedia {
         domain.add_device (disk);
     }
 
-    public override void setup_spice_config (DomainGraphicsSpice graphics) {
-        // If guest requires password, we let it take care of authentications and free the user from one
-        // authentication layer.
-        if (express_install && !password_mandatory && password != "")
-            graphics.set_password (password);
-    }
-
     public override void populate_setup_vbox (Gtk.VBox setup_vbox) {
         foreach (var child in setup_vbox.get_children ())
             setup_vbox.remove (child);
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index c4af285..0576339 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -64,7 +64,6 @@ private class Boxes.VMConfigurator {
 
         var graphics = new DomainGraphicsSpice ();
         graphics.set_autoport (true);
-        install_media.setup_spice_config (graphics);
         domain.add_device (graphics);
 
         // SPICE agent channel. This is needed for features like copy&paste between host and guest etc to work.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]