diff --git a/rfirma-app/src-tauri/src/identity/application/readers.rs b/rfirma-app/src-tauri/src/identity/application/readers.rs index 0f572350..f8dee499 100644 --- a/rfirma-app/src-tauri/src/identity/application/readers.rs +++ b/rfirma-app/src-tauri/src/identity/application/readers.rs @@ -45,7 +45,7 @@ pub fn watches_the_readers(platform: Platform, channel: Channel) -> bool { match platform { Platform::Linux => matches!(channel, Channel::Native | Channel::Flatpak), Platform::Windows => channel == Channel::Windows, - Platform::MacOs => channel == Channel::Native, + Platform::MacOs => false, } } diff --git a/rfirma-app/src-tauri/src/identity/application/readers/tests.rs b/rfirma-app/src-tauri/src/identity/application/readers/tests.rs index fff98724..31e6b5d8 100644 --- a/rfirma-app/src-tauri/src/identity/application/readers/tests.rs +++ b/rfirma-app/src-tauri/src/identity/application/readers/tests.rs @@ -229,14 +229,14 @@ fn with_no_full_listing_yet_every_store_is_opened() { } #[test] -fn the_readers_are_watched_on_linux_windows_and_macos() { +fn the_readers_are_watched_on_linux_and_windows_and_not_on_macos() { use crate::desktop::domain::channel::Channel; use crate::desktop::domain::platform::Platform; assert!(watches_the_readers(Platform::Linux, Channel::Native)); assert!(watches_the_readers(Platform::Linux, Channel::Flatpak)); assert!(watches_the_readers(Platform::Windows, Channel::Windows)); - assert!(watches_the_readers(Platform::MacOs, Channel::Native)); + assert!(!watches_the_readers(Platform::MacOs, Channel::Native)); } const CARD_KSP: &str = "Microsoft Smart Card Key Storage Provider";