1 |
On Monday 15 March 2010 13:32:51 you wrote: |
2 |
> On 14 March 2010 21:30, Neil Bothwick <neil@××××××××××.uk> wrote: |
3 |
> > On Sun, 14 Mar 2010 20:23:40 +0000, Mick wrote: |
4 |
> >> I am trying this script in /etc/env.d/90gpg-agent: |
5 |
> >> ================================ |
6 |
> >> if test -f $HOME/.gpg-agent-info && kill -0 `cut -d: -f 2 |
7 |
> >> $HOME/.gpg-agent-info` 2>/dev/null; then |
8 |
> >> GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info` |
9 |
> >> export GPG_AGENT_INFO |
10 |
> >> else |
11 |
> >> eval `/usr/bin/gpg-agent --daemon` |
12 |
> >> echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info |
13 |
> >> fi |
14 |
> >> ================================ |
15 |
> >> |
16 |
> >> But when I emerged kgpg I got this error: |
17 |
> >> ================================ |
18 |
> >> !!! 'ParseError: Invalid token 'test' (not '='): |
19 |
> >> /etc/env.d/90gpg-agent: line 1 in /etc/env.d/90gpg-agent' |
20 |
> >> ================================ |
21 |
> >> |
22 |
> >> Can you please help me correct the above script, I'm not sure |
23 |
> >> what's wrong with it. |
24 |
> > |
25 |
> > env-update doesn't evaluate scripts. It expects only variable |
26 |
> > assignments. |
27 |
> |
28 |
> Ahh! Didn't know that. Thanks. :-) |
29 |
> |
30 |
> > You mention kgpg, are you using KDE? If so, it takes care of this |
31 |
> > automatically, you only need to uncomment the relevant lines in the agent |
32 |
> > startup and shutdown scripts in /etc/kde. Otherwise, put the script in a |
33 |
> > file in /etc/profile.d. |
34 |
> |
35 |
> I only use a few KDE apps. rather than the full DE. I used to have an |
36 |
> one-liner in /etc/X11/Sessions/fluxbox, but that means if I choose |
37 |
> another WM/DE the previous gpg-agent is still running. Meanwhile, I |
38 |
> found this: |
39 |
> |
40 |
> http://bugs.gentoo.org/258944 |
41 |
> |
42 |
> will give it a spin and see how it goes. |
43 |
|
44 |
This works fine, as long as I start fluxbox from the console with startx, but |
45 |
not if I use xdm ... probably something to do with the former using xinit? |
46 |
|
47 |
-- |
48 |
Regards, |
49 |
Mick |