[gnome-boxes/gnome-42] vm-configurator: Ensure spice graphics is specified in vm creation



commit 0347175d6d4246d890a2a38d3968840b1f5befbb
Author: Sam Ezeh <sam z ezeh gmail com>
Date:   Fri Jun 24 13:04:38 2022 +0000

    vm-configurator: Ensure spice graphics is specified in vm creation
    
    Resolves #806

 src/vm-configurator.vala | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 8e9f83f4..17720b59 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -91,10 +91,13 @@ public static Domain create_domain_config (InstallerMedia install_media, string
         set_target_media_config (domain, target_path, install_media);
         install_media.setup_domain_config (domain);
 
-        add_usb_support (domain, install_media);
+        if (SPICE_AVAILABLE) {
+            domain.add_device (create_graphics_device());
+            add_usb_support (domain, install_media);
 
-        if (!App.is_running_in_flatpak ())
-            add_smartcard_support (domain);
+            if (!App.is_running_in_flatpak ())
+                add_smartcard_support (domain);
+        }
 
         set_video_config (domain, install_media);
         set_sound_config (domain, install_media);


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