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

Re: Help with gpg-agent



Mail Lists wrote:
> On 01/18/2009 04:05 PM, Kevin Kofler wrote:
>> Mail Lists wrote:
>>>   How do I make this work in gnome please ?
>>
>> GNOME normally uses seahorse instead of the vanilla gpg-agent.

I don't think that's enabled by default.  It certainly isn't for me,
on an up to date F-10.

> Where in gnome does one create session wide environments (user
> level) ?

I've always setup gpg-agent in my bash configuration.  This works
whether I log in graphically or via the console.  I have a section in
~/.bash_profile that mimics what /etc/profile does to source multiple
filed, and then in ~/.profile.d/gpg-agent.sh, I have:

# start gpg-agent if needed
agent=$(which gpg-agent 2>/dev/null)
info=~/.gnupg/agent-info
if [ -x "$agent" ]; then
    if [ -f $info ] && kill -0 `cut -d: -f 2 $info` 2>/dev/null; then
	export $(cat $info)
    else
	eval $($agent --daemon --write-env-file $info)
    fi

    # export gpg tty
    export GPG_TTY=`tty`
fi
unset agent info

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To succeed, jump as quickly at opportunities as you do at conclusions.
    -- Benjamin Franklin

Attachment: pgppgBupwjvP3.pgp
Description: PGP signature


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