From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-108923-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1NrAQg-000327-7a
	for garchives@archives.gentoo.org; Mon, 15 Mar 2010 13:33:58 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id A7EC0E07A3;
	Mon, 15 Mar 2010 13:32:52 +0000 (UTC)
Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219])
	by pigeon.gentoo.org (Postfix) with ESMTP id 5D68CE07A3
	for <gentoo-user@lists.gentoo.org>; Mon, 15 Mar 2010 13:32:52 +0000 (UTC)
Received: by bwz19 with SMTP id 19so3294722bwz.26
        for <gentoo-user@lists.gentoo.org>; Mon, 15 Mar 2010 06:32:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        bh=x6cDLN9MX4/d7T+xUycVD051t6hlbrvb3jlvkOFIJ8E=;
        b=DDIMSF3wipB1NjQjf/V8Z9BHfi8NBa4OqzTO3VJP7i8ctQayqNvB1mPu7lftDcH4wg
         tevgeUjHLmMZAiImk1ItOxthtucmYXkLNeX1NZLBjm+6dWdhS7HYFMLkOp/Uqj4lkcen
         fqbG3eFMKro7p2nydwA3YHKoxpRn9E9uQSQno=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        b=FYvW5gron/86deZcYR+PDLI5y3znuUxQXYfiYvK54MJfVvMJZCz/BPBDd21lc0HM94
         rdnmDO4sQP2l2874mPZpdc4EnZbSDu1qRAEGcbdfyskZdWhSiuV8PnubixSWSOyHSz8O
         rwgm7+vqDPNLOyfKbB/pCAM7m/pwEKzIpHEW4=
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.204.132.131 with SMTP id b3mr4409917bkt.135.1268659971533; 
	Mon, 15 Mar 2010 06:32:51 -0700 (PDT)
In-Reply-To: <20100314213003.2c41cdc1@digimed.co.uk>
References: <201003142023.41392.michaelkintzios@gmail.com>
	 <20100314213003.2c41cdc1@digimed.co.uk>
Date: Mon, 15 Mar 2010 13:32:51 +0000
Message-ID: <358eca8f1003150632o26248fafu250ef9af4e7c0341@mail.gmail.com>
Subject: Re: [gentoo-user] Starting up gpg-agent script
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 88323bee-11e7-482a-b0e4-61ffff9d92f9
X-Archives-Hash: 5004f4f9a9e35578e408d0eaad80438a

On 14 March 2010 21:30, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Sun, 14 Mar 2010 20:23:40 +0000, Mick wrote:
>
>> I am trying this script in /etc/env.d/90gpg-agent:
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
>> if test -f $HOME/.gpg-agent-info && kill -0 `cut -d: -f 2
>> $HOME/.gpg-agent-info` 2>/dev/null; then
>> =A0 =A0 GPG_AGENT_INFO=3D`cat $HOME/.gpg-agent-info`
>> =A0 =A0 export GPG_AGENT_INFO
>> else
>> =A0 =A0 eval `/usr/bin/gpg-agent --daemon`
>> =A0 =A0 echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info
>> fi
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
>>
>> But when I emerged kgpg I got this error:
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
>> !!! 'ParseError: Invalid token 'test' (not '=3D'):
>> /etc/env.d/90gpg-agent: line 1 in /etc/env.d/90gpg-agent'
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
>>
>> Can you please help me correct the above script, I'm not sure
>> what's wrong with it.
>
> env-update doesn't evaluate scripts. It expects only variable assignments=
.

Ahh!  Didn't know that.  Thanks.  :-)

> You mention kgpg, are you using KDE? If so, it takes care of this
> automatically, you only need to uncomment the relevant lines in the agent
> startup and shutdown scripts in /etc/kde. Otherwise, put the script in a
> file in /etc/profile.d.

I only use a few KDE apps. rather than the full DE.  I used to have an
one-liner in /etc/X11/Sessions/fluxbox, but that means if I choose
another WM/DE the previous gpg-agent is still running.  Meanwhile, I
found this:

http://bugs.gentoo.org/258944

will give it a spin and see how it goes.
--=20
Regards,
Mick