jorgelbg / pinentry-touchid

Custom GPG pinentry program for macOS that allows using Touch ID for fetching the password from the macOS keychain.
Apache License 2.0
521 stars 23 forks source link

Use `pinentry-mac` directly if TouchID unavailable #34

Open eth-p opened 1 year ago

eth-p commented 1 year ago

By using execve(2), we can replace the running pinentry-touchid process with pinentry-mac. This allows it to directly communicate with the GPG agent, receiving all the pinentry settings and messages.

I made this change to improve the UX when my laptop lid is closed. Before it, the pinentry dialog would have no text or error messages.