aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-boxes/add-smartcard-disable-option.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/gnome-boxes/add-smartcard-disable-option.patch')
-rw-r--r--community/gnome-boxes/add-smartcard-disable-option.patch36
1 files changed, 18 insertions, 18 deletions
diff --git a/community/gnome-boxes/add-smartcard-disable-option.patch b/community/gnome-boxes/add-smartcard-disable-option.patch
index 7c35eea5b2..dfb1e823c3 100644
--- a/community/gnome-boxes/add-smartcard-disable-option.patch
+++ b/community/gnome-boxes/add-smartcard-disable-option.patch
@@ -1,20 +1,20 @@
-From db0d70ada9f64b3af41fd34a4a31485cb5ac9ed5 Mon Sep 17 00:00:00 2001
+From ac3d004f793307a89787acdf99e368ffc118d24f Mon Sep 17 00:00:00 2001
From: knuxify <knuxify@gmail.com>
-Date: Fri, 15 Apr 2022 14:32:05 +0200
+Date: Tue, 5 Jul 2022 19:34:24 +0200
Subject: [PATCH] build, config: Add separate option for enabling smartcard
support
Allows for disabling smartcard support on systems where it is disabled
in QEMU.
---
- meson.build | 1 +
- meson_options.txt | 5 +++++
- src/config.vapi | 1 +
- src/vm-configurator.vala | 2 +-
+ meson.build | 1 +
+ meson_options.txt | 5 +++++
+ src/config.vapi | 1 +
+ src/vm-configurator.vala | 2 +-
4 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
-index 4df18cbb..e13689c2 100644
+index d08220a..4e4782d 100644
--- a/meson.build
+++ b/meson.build
@@ -37,6 +37,7 @@ conf.set_quoted ('DATADIR', data_dir)
@@ -26,7 +26,7 @@ index 4df18cbb..e13689c2 100644
if get_option ('profile') == 'development'
diff --git a/meson_options.txt b/meson_options.txt
-index ebd86b47..2d0b4d4a 100644
+index ebd86b4..2d0b4d4 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -34,3 +34,8 @@ option ('uefi',
@@ -39,7 +39,7 @@ index ebd86b47..2d0b4d4a 100644
+ value: true,
+ description: 'Whether to enable smartcard support or not')
diff --git a/src/config.vapi b/src/config.vapi
-index f6144e59..1aef8d9b 100644
+index f6144e5..1aef8d9 100644
--- a/src/config.vapi
+++ b/src/config.vapi
@@ -15,4 +15,5 @@ namespace Config {
@@ -49,18 +49,18 @@ index f6144e59..1aef8d9b 100644
+ public const bool SMARTCARD_SUPPORTED;
}
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
-index 6d817df7..45b12f20 100644
+index 17720b5..e234c36 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
-@@ -92,7 +92,7 @@ public static Domain create_domain_config (InstallerMedia install_media, string
+@@ -95,7 +95,7 @@ public static Domain create_domain_config (InstallerMedia install_media, string
+ domain.add_device (create_graphics_device());
+ add_usb_support (domain, install_media);
- add_usb_support (domain, install_media);
+- if (!App.is_running_in_flatpak ())
++ if (Config.SMARTCARD_SUPPORTED && !App.is_running_in_flatpak ())
+ add_smartcard_support (domain);
+ }
-- if (!App.is_running_in_flatpak ())
-+ if (Config.SMARTCARD_SUPPORTED && !App.is_running_in_flatpak ())
- add_smartcard_support (domain);
-
- set_video_config (domain, install_media);
--
-2.35.2
+2.37.0