[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kmail & cryptplug anyone?



Hi!

On Tuesday 08 April 2003 02:57, Mika Fischer wrote:
> And if you like gpg-agent being started automatically you can try the
> attached script (to be put into /etc/X11/Xsession.d).

So here's the script :)

Cheers,
 Mika
STARTGPG=
GPGAGENT=/usr/bin/gpg-agent
#GPGAGENTARGS="--daemon"
GPGAGENTARGS="--daemon --debug-all"

if grep -qs ^use-gpg-agent "$OPTIONFILE"; then
    if [ -x "$GPGAGENT" ]; then
        STARTGPG=yes
    fi
fi

if [ -n "$STARTGPG" ]; then
    if test -f $HOME/.gpg-agent-info && \
      kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then
        GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info`
        export GPG_AGENT_INFO
    else
        eval `gpg-agent --daemon`
        echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info
    fi
fi

Attachment: pgpJ0iPEw0N68.pgp
Description: signature


Reply to: