aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorTeddy Wing2022-08-20 17:02:38 +0200
committerTeddy Wing2022-08-20 17:02:38 +0200
commitc1f72865741868d094a53fa73ee9b8562202ab0a (patch)
tree98745b8e7f2c1892aeefb54c9d9ef88be9f33f65 /.gitignore
parent0eae53c6fe2c5dc9c382d45fabbb515f65a3d32f (diff)
downloadPassextract-c1f72865741868d094a53fa73ee9b8562202ab0a.tar.bz2
Spawn `pass` in order to support GnuPG 2 and Pinentry
Previously, Passextract didn't work with GnuPG 2 because I was immediately collecting the output of `pass`. With GnuPG 1.4, the password prompt was like a conventional `read`-style password prompt. However, in GnuPG 2, the prompt is replaced with Pinentry. Pinentry interferes with capturing the output from Pass, such that Passextract exits immediately, without even prompting for a password. Instead of using `Command.output`, use `Command.spawn`. This allows GnuPG to work correctly and display a Pinentry prompt. We can then capture the standard output from the child process and parse it for the Passextract interface.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions