-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No password prompt when lid closed #15
Comments
I just hit the same issue and was able to add a fallback scenario when pinentry-mac is called. It worked for me and in case you want to try it out please check #21 # build a new binary with fallback support
go build -o pinentry-touchid-with-fallback main.go Don't forget to set a proper path to a new binary in |
Any chance of a workaround or a config option to I have an M1 MBP and use Touch ID with the lid closed (using the new external keyboard with Touch ID) almost all the time. |
@lgarron Yep, this is definitively a use case that I want to support. I haven't been able to find any API changes required for supporting the Magic Keyboard with Touch ID so far. We do not execute any additional checks beyond testing if the |
Oh, I wanted to check what Apple would say about it and seems that @jorgelbg already did it :) Seems to be a bug related to |
I finally got my hands on an external keyboard with Touch ID for testing this properly. Sadly I'm not able to reproduce the issue: pinentry-external-keyboard.mp4as shown in the video, I'm using the command: $ ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState | head -1 to verify that the lid is actually closed, after that calling: $ echo 1234 | /usr/local/bin/gpg -as - as a simple test case successfully call pinentry-touchid and the unlocking works via the external Touch ID sensor. For reference I'm testing on a 16" MacBook Pro with an Apple M1 Pro running macOS Monterey v12.5 (21G72). I'm also running the latest version of pinentry-touchid installed via home-brew (which still contains the same call to @lgarron can you provide any additional details about your issue or give it a try to the latest version? |
I would expect pinentry just passthrough the call to pinentry-mac, if laptop lid is closed, but instead it fails the hard way:
/opt/homebrew/opt/pinentry-touchid/bin/pinentry-touchid 2021/12/15 05:39:17 pinentry-touchid does not support devices without a Touch ID sensor!
I use the Macbook Air M1 which has touchid
The text was updated successfully, but these errors were encountered: