Closed sarunint closed 5 years ago
Hello. thanks for the initial issue information. I do need to get the step-by-step information of how to reproduce your issue. I see that you have Windows 10 and the newer 18.04 Ubuntu WSL (I personally haven't tested 18.04). What are the detailed steps that I need to follow to reproduce your issue? What is your issue? Meaning what is the errant result that you get? What is your expected result rather than the errant result?
Hi @diablodale, I'll provide you with information later today.
gpg-connect-agent killagent /bye
then gpg-connect-agent /bye
echo "test" | gpg -a -c
After step 3, I should get a dialog prompting for a passphrase, but GPG simply just hangs indefinitely.
The log is as shown in the original post.
Hello. I found a one-line bug with my handing of the SETDESC command. Please try this branch which has the fix in it. Does it work and no longer hang? https://github.com/diablodale/pinentry-wsl-ps1/tree/handle-newkey
Hmm, let me check.
Hi @diablodale, it does not hang anymore!
:-) good news. I will close this issue as resolved fixed.
I'm using the bash script on the handle-newkey
branch (it doesn't seem like it got merged to master) and gpg still hangs. I ran the same command (echo "test" | gpg -a -c
) and got the following output:
gpg: problem with the agent: Timeout
gpg: error creating passphrase: Operation cancelled
gpg: symmetric encryption of '[stdin]' failed: Operation cancelled
Oops, I did forget to merge it to master. I just did that now. @hugmanrique , please open a new bug with very much more information so that I can help you with your specific issues.
Same as #2, but this time with logs!
Here we go:
Looks like gpg check for
GET_PASSPHRASE
command withGETINFO cmd_has_option GET_PASSPHRASE repeat
and since your script returns OK it fires that command.EDIT: my environment Windows 10 version 1809 Ubuntu 18.04
(Yes, Ubuntu 18.04's gpg is version 2 by default, so no more gpg2.)