etc-gentoo/X11/xinit/xinitrc.d/96-gnupg-agent

22 lines
661 B
Plaintext
Executable File

#: ${GNUPGHOME=$HOME/.gnupg}
#GPGAGENT=/usr/bin/gpg-agent
#PID_FILE="$GNUPGHOME/gpg-agent-info-$(hostname)"
#if grep -qs '^[[:space:]]*use-agent' "$GNUPGHOME/gpg.conf" "$GNUPGHOME/options" &&
# test -x $GPGAGENT &&
# { test -z "$GPG_AGENT_INFO" || ! $GPGAGENT 2>/dev/null; }; then
# if [ -r "$PID_FILE" ]; then
# . "$PID_FILE"
# fi
# Invoking gpg-agent with no arguments exits successfully if the agent
# is already running as pointed by $GPG_AGENT_INFO
# if ! $GPGAGENT 2>/dev/null; then
# STARTUP="$GPGAGENT --use-standard-socket --daemon --sh --enable-ssh-support --write-env-file=$PID_FILE"
# fi
#fi
#eval `${STARTUP}`