Closed troyanov closed 2 years ago
Hi @jorgelbg can you please review this one?
Fixes #15
@troyanov Nice finding! and thank you for the contribution! I never considered the chance where people used pinentry-touchid with the laptop closed 😅 (looking back is kind of obvious that a lot of people use their laptop in clamshell mode.
There might be a situation when device has TouchID, but once the lid is closed
sensor.IsTouchIDAvailable()
returns false. It happens when you connect and external display to your laptop and have the lid closed.This PR adds a fallback scenario to call pinentry-mac when touchID is not available.