Page MenuHome GnuPG

do not get prompted to save passphrase to password manager when using pinentry-curses
Open, NormalPublic


when I have this setup for my ~/.gnupg/gpg-agent.conf

default-cache-ttl 1
maximum-cache-ttl 2
pinentry-program /usr/bin/pinentry-gnome3

I see this visual GUI prompt for the passphrase

which has the option to save the passphrase to seahorse.

but I wanted to setup the gpg agent to take in the passphrase via the terminal instead of a GUI. my pinentry options are

lrwxrwxrwx 1 root root          26 Oct 18  2022 pinentry -> /etc/alternatives/pinentry
-rwxr-xr-x 1 root root       72264 Oct 18  2022 pinentry-curses
-rwxr-xr-x 1 root root       80456 Oct 18  2022 pinentry-gnome3
lrwxrwxrwx 1 root root          30 Oct 18  2022 pinentry-x11 -> /etc/alternatives/pinentry-x11

and the only one that seems to terminal based is pinentry-curses but when I set my ~/.gnupg/gpg-agent.conf to

default-cache-ttl 1
maximum-cache-ttl 2
pinentry-program /usr/bin/pinentry-curses

I just wind up seeing

and I can't figure out any way to get it to prompt to save the passphrase in seahorse?

this is my versions

 $ gpg-agent --help
gpg-agent (GnuPG) 2.2.40
libgcrypt 1.10.1
Copyright (C) 2022 g10 Code GmbH

Event Timeline

werner edited projects, added Feature Request, pinentry; removed Bug Report.
werner added a subscriber: werner.

Different pinentries provide different options. The curses pinentry does not have that external password manager thingy. Mixing GUI and tty use seems to be a rare case.

is there a keyring/password manager that is not dependent on a desktop environment that the terminal pinentry supports?