gnome-boxes/0003-disable-domain-conf-smartcard-because-qemu-not-open-this-support-now.patch
weijin deng a21d4a72b6 Add four patches to make gome-boxes avoid setting qemu unsupported modules
add vnc instead of spice

(cherry picked from commit e2d218179379be68f25ab542e8836c3590025c7a)
2022-03-17 10:31:09 +08:00

31 lines
1005 B
Diff

diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 010faa0..66e435b 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -114,7 +114,7 @@ private class Boxes.VMConfigurator {
add_usb_support (domain);
#if !FLATPAK
- add_smartcard_support (domain);
+ //add_smartcard_support (domain);
#endif
set_video_config (domain, install_media);
@@ -651,14 +651,14 @@ private class Boxes.VMConfigurator {
} catch (GLib.Error error) { assert_not_reached (); /* We are so screwed if this happens */ }
}
}
-
+/*
public static void add_smartcard_support (Domain domain) {
var smartcard = new DomainSmartcardPassthrough ();
var vmc = new DomainChardevSourceSpiceVmc ();
smartcard.set_source (vmc);
domain.add_device (smartcard);
}
-
+*/
public static void add_usb_support (Domain domain) {
// 4 USB redirection channels
for (int i = 0; i < 4; i++) {