From 826d63428d9789b0a67ed1e2ba54496b34060d98 Mon Sep 17 00:00:00 2001 From: Walter Smuts Date: Wed, 5 Jul 2023 10:03:06 +0200 Subject: Add FAQ on tty pinentry hang Fix: https://github.com/carnager/rofi-pass/issues/230 --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 ` 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] -- cgit