[gnome-boxes] vm-configurator: Ensure spice graphics is specified in vm creation
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-configurator: Ensure spice graphics is specified in vm creation
- Date: Fri, 24 Jun 2022 13:04:45 +0000 (UTC)
commit 7cdd0aae10f6684dbac525a6380528274a187f3c
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 | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 8e9f83f4..8ede133e 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -91,10 +91,12 @@ 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 (!App.is_running_in_flatpak ())
- add_smartcard_support (domain);
+ 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);
+ }
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]