Skip to content

Instantly share code, notes, and snippets.

@julienfastre
Last active September 9, 2015 07:35
Show Gist options
  • Save julienfastre/9a91e3116505f6109e84 to your computer and use it in GitHub Desktop.
Save julienfastre/9a91e3116505f6109e84 to your computer and use it in GitHub Desktop.
The GNOME keyring manager hijacked the GnuPG agent.

On...

$ gpg2 --card-status
gpg: WARNING: The GNOME keyring manager hijacked the GnuPG agent.
gpg: WARNING: GnuPG will not work properly - please configure that tool to not interfere with the GnuPG system!

The gpg-agent is hijacked by gnome keyring :

$ echo $GPG_AGENT_INFO
/run/user/1000/keyring/gpg:0:1

Soluce: start a gpg agent and change the GPG_AGENT_INFO variable:

$ gpg-agent --daemon
GPG_AGENT_INFO=/tmp/gpg-Kd7kIC/S.gpg-agent:4415:1; export GPG_AGENT_INFO; #copy this line below
$ GPG_AGENT_INFO=/tmp/gpg-Kd7kIC/S.gpg-agent:4415:1; export GPG_AGENT_INFO;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment