Hacking GPG-Agent

Alina Friedrichsen x-alina at gmx.net
Thu Mar 21 16:26:53 CET 2013


Knowing better hacks?

*** /usr/local/bin/gpg ***

#!/bin/sh

if [ -f "$HOME/.gpg-agent-info" ]; then
   . "$HOME/.gpg-agent-info"
fi

gpg2 "$@"

*** /home/x-alina/.profile ***

# [...]
if ! pidof gpg-agent; then
    gpg-agent --daemon --enable-ssh-support > "$HOME/.gpg-agent-info"
fi

if [ -f "$HOME/.gpg-agent-info" ]; then
    . "$HOME/.gpg-agent-info"
fi





More information about the Gnupg-devel mailing list