]> git.pld-linux.org Git - packages/gnupg2.git/blame - gnupg-agent.sh
- rel 2; drop seahorse-agent support (seahorse doesn't provide such binary); launch...
[packages/gnupg2.git] / gnupg-agent.sh
CommitLineData
37037e90
AM
1#!/bin/sh
2
3if [ -r "${HOME}/.gnupg/gpg.conf" ]; then
6a62d2af 4 CFG="${HOME}/.gnupg/gpg.conf"
37037e90 5else
6a62d2af 6 CFG="${HOME}/.gnupg/options"
37037e90
AM
7fi
8
8753b7ed 9if grep -q "^[[:blank:]]*use-agent" ${CFG} 2>/dev/null; then
aab2acb5 10 /usr/bin/gpgconf --launch gpg-agent
37037e90 11fi
aab2acb5 12
63d7337b 13unset CFG
This page took 0.043947 seconds and 4 git commands to generate.