aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2023-07-07 17:32:36 +0200
committerGitHub <noreply@github.com>2023-07-07 17:32:36 +0200
commite77cbdbe0e885f0b1daba3a0b6bae793cc2b1ba3 (patch)
tree950e6ce9cb0e339c102fe4b91674344bc64eadf4 /README.md
parentfa16c0211d898d337e76397d22de4f92e2405ede (diff)
parent826d63428d9789b0a67ed1e2ba54496b34060d98 (diff)
downloadrofi-pass-master.tar.gz
Merge pull request #232 from WalterSmuts/mastermaster
Add FAQ on tty pinentry hang
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6581dfc..babaa08 100644
--- a/README.md
+++ b/README.md
@@ -173,6 +173,23 @@ To get this, you need to set `default_user` to `:filename` in your configuration
Make sure to run `setxkbmap <language> <variant>` at the start of your Xorg
session.
+### rofi pass hangs after selecting password
+
+To access passwords your GPG agent needs to have unlocked your secret key
+you're using to encrypt your passwords with. If the secret key hasn't been
+unlocked yet it will prompt for the secret key password using `pinentry`. If
+`pinentry` is configured to read from a `tty` then `rofi-pass` will hang
+indefinitely. To fix this you need to [configure gpg][gpg_pinentry_config] to
+use a gui version of `pinentry`. E.g.
+```
+$ cat ~/.gnupg/gpg-agent.conf
+pinentry-program /usr/bin/pinentry-qt
+```
+You may have to kill the GPG agent if it's still in a bad state:
+```
+killall -9 gpg-agent
+```
+
## Alternative
jreinert has written the roughly compatible tool
@@ -180,3 +197,5 @@ jreinert has written the roughly compatible tool
definately saner code.
Also he provided a nice little script called `passed` to change your
fieldnames. [link](https://github.com/jreinert/passed)
+
+[gpg_pinentry_config][https://github.com/bfrg/gpg-guide/blob/master/gpg-agent.conf#L15]