funtoo / keychain

keychain ssh-agent front-end
http://www.funtoo.org
GNU General Public License v2.0
750 stars 104 forks source link

gpg-agent is started, but GPG_AGENT_INFO not recorded #126

Open tastytea opened 3 years ago

tastytea commented 3 years ago

OS: Gentoo Linux Keychain version: 2.8.5 GPG version: 2.2.20

The command keychain --agents "ssh,gpg" --timeout $((60*16)) --inherit local --eval does not print GPG_AGENT_INFO and does not record it in ~/.keychain.

$ echo -e "-${SSH_AGENT_PID}-${GPG_AGENT_INFO}-"
---
$ pidof ssh-agent gpg-agent
$ rm -r ~/.keychain
$ eval $(keychain --agents "ssh,gpg" --timeout $((60*16)) --inherit local --eval)

 * keychain 2.8.5 ~ http://www.funtoo.org
 * Starting ssh-agent...
 * Starting gpg-agent...

$ echo -e "-${SSH_AGENT_PID}-${GPG_AGENT_INFO}-"
-23849--
$ pidof ssh-agent gpg-agent
23849 23876
$ cat ~/.keychain/$(hostname)-sh-gpg
tastytea commented 3 years ago

If I call eval $(keychain --agents "ssh,gpg" --timeout $((60*16)) --inherit local --eval) a second time, GPG_AGENT_INFO is set and recorded in ~/.keychain/$(hostname)-sh-gpg.

mrl5 commented 2 years ago

hello @tastytea - if you'd like to report a bug kindly use https://bugs.funtoo.org/

you can also reach us on Discord - for more info check https://www.funtoo.org/Welcome