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
560 stars 27 forks source link

fix issue with "end of file" #18

Closed fredwangwang closed 2 years ago

fredwangwang commented 2 years ago

Detailed issue:

can't connect to the PIN entry module '/opt/homebrew/opt/pinentry-touchid/bin/pinentry-touchid': End of file

Reason:

dig into the issue find out when gpg calls out to pinentry-touchi binary, it adds "--display /private/tmp/com.apple.launchd.MGdSfNPjrJ/org.xquartz:0" flag.

Because --display is an unrecognized flag for the binary, it errors out immediately. This then result in an unclear message returned from gpg: "No pinentry".

Fix:

adding the dummy --dispaly flag to the flag parser.

plandes commented 2 years ago

This fix appears to have not yet been released (I see only a Dec latest release and the brew version seems even older). @jorgelbg, will you please release it?