public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Starting up gpg-agent (and ssh-agent?)
@ 2010-05-25 15:02 Mick
  2010-05-25 19:05 ` Alan McKinnon
  2010-05-25 19:24 ` Jacob Todd
  0 siblings, 2 replies; 5+ messages in thread
From: Mick @ 2010-05-25 15:02 UTC (permalink / raw
  To: gentoo-user

Hi All,

I have asked a similar question on this M/L in the past.  There seems
to be different ways of making sure that gpg-agent is started prior to
the desktop being launched, but I can't get any of these to work with
enlightenment, which I am currently trying out.

Previously, I was using almost exclusively Fluxbox, which when started
with startx uses /etc/X11/xinit/xinitrc.d/20-gpg-agent as detailed
here:

http://bugs.gentoo.org/show_bug.cgi?id=258944

Starting Fluxbox using xdm was less successful.  It doesn't seem to
read /etc/X11/xinit/xinitrc.d/20-gpg-agent.  I also tried different
things like using ~/.xsession, or ~/.xinitrc, or hacking
/etc/X11/Sessions/fluxbox, but nothing appeared to work cleanly.

Now I use kdm (with /etc/init.d/xdm) to launch enlightenment, but kdm
does not read /etc/X11/xinit/xinitrc.d/20-gpg-agent either.  When kdm
is used to launch KDE then the file /etc/kde/startup/agent-startup.sh
is parsed and everything works as expected within KDE.  Enlightenment
does not have anything similar and kdm itself does not read
/etc/kde/startup/agent-startup.sh.

What would you recommend I use to launch gpg-agent so that it works
with kdm/Enlightenment?
-- 
Regards,
Mick



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Starting up gpg-agent (and ssh-agent?)
  2010-05-25 15:02 [gentoo-user] Starting up gpg-agent (and ssh-agent?) Mick
@ 2010-05-25 19:05 ` Alan McKinnon
  2010-05-25 21:59   ` Mick
  2010-05-25 19:24 ` Jacob Todd
  1 sibling, 1 reply; 5+ messages in thread
From: Alan McKinnon @ 2010-05-25 19:05 UTC (permalink / raw
  To: gentoo-user; +Cc: Mick

On Tuesday 25 May 2010 17:02:55 Mick wrote:
> Hi All,
> 
> I have asked a similar question on this M/L in the past.  There seems
> to be different ways of making sure that gpg-agent is started prior to
> the desktop being launched, but I can't get any of these to work with
> enlightenment, which I am currently trying out.
> 
> Previously, I was using almost exclusively Fluxbox, which when started
> with startx uses /etc/X11/xinit/xinitrc.d/20-gpg-agent as detailed
> here:
> 
> http://bugs.gentoo.org/show_bug.cgi?id=258944
> 
> Starting Fluxbox using xdm was less successful.  It doesn't seem to
> read /etc/X11/xinit/xinitrc.d/20-gpg-agent.  I also tried different
> things like using ~/.xsession, or ~/.xinitrc, or hacking
> /etc/X11/Sessions/fluxbox, but nothing appeared to work cleanly.
> 
> Now I use kdm (with /etc/init.d/xdm) to launch enlightenment, but kdm
> does not read /etc/X11/xinit/xinitrc.d/20-gpg-agent either.  When kdm
> is used to launch KDE then the file /etc/kde/startup/agent-startup.sh
> is parsed and everything works as expected within KDE.  Enlightenment
> does not have anything similar and kdm itself does not read
> /etc/kde/startup/agent-startup.sh.
> 
> What would you recommend I use to launch gpg-agent so that it works
> with kdm/Enlightenment?

display managers do not use *xinitrc*, that is why it is failing with every dm 
you have tried

Those files are read by startx and you should treats them as if they are read 
only by startx

You have already found the correct way to start apps in kdm, that is where you 
should launch gpg-agent

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Starting up gpg-agent (and ssh-agent?)
  2010-05-25 15:02 [gentoo-user] Starting up gpg-agent (and ssh-agent?) Mick
  2010-05-25 19:05 ` Alan McKinnon
@ 2010-05-25 19:24 ` Jacob Todd
  1 sibling, 0 replies; 5+ messages in thread
From: Jacob Todd @ 2010-05-25 19:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 38 bytes --]

You should look at net-misc/keychain.

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Starting up gpg-agent (and ssh-agent?)
  2010-05-25 19:05 ` Alan McKinnon
@ 2010-05-25 21:59   ` Mick
  2010-05-28 17:30     ` Mick
  0 siblings, 1 reply; 5+ messages in thread
From: Mick @ 2010-05-25 21:59 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 2203 bytes --]

On Tuesday 25 May 2010 20:05:12 Alan McKinnon wrote:
> On Tuesday 25 May 2010 17:02:55 Mick wrote:
> > Hi All,
> >
> > I have asked a similar question on this M/L in the past.  There seems
> > to be different ways of making sure that gpg-agent is started prior to
> > the desktop being launched, but I can't get any of these to work with
> > enlightenment, which I am currently trying out.
> >
> > Previously, I was using almost exclusively Fluxbox, which when started
> > with startx uses /etc/X11/xinit/xinitrc.d/20-gpg-agent as detailed
> > here:
> >
> > http://bugs.gentoo.org/show_bug.cgi?id=258944
> >
> > Starting Fluxbox using xdm was less successful.  It doesn't seem to
> > read /etc/X11/xinit/xinitrc.d/20-gpg-agent.  I also tried different
> > things like using ~/.xsession, or ~/.xinitrc, or hacking
> > /etc/X11/Sessions/fluxbox, but nothing appeared to work cleanly.
> >
> > Now I use kdm (with /etc/init.d/xdm) to launch enlightenment, but kdm
> > does not read /etc/X11/xinit/xinitrc.d/20-gpg-agent either.  When kdm
> > is used to launch KDE then the file /etc/kde/startup/agent-startup.sh
> > is parsed and everything works as expected within KDE.  Enlightenment
> > does not have anything similar and kdm itself does not read
> > /etc/kde/startup/agent-startup.sh.
> >
> > What would you recommend I use to launch gpg-agent so that it works
> > with kdm/Enlightenment?
> 
> display managers do not use *xinitrc*, that is why it is failing with every
>  dm you have tried
> 
> Those files are read by startx and you should treats them as if they are
>  read only by startx

Ahhh! I see ...


> You have already found the correct way to start apps in kdm, that is where
>  you should launch gpg-agent

Hmmm, you lost me there Alan.  I have noticed that launching KDE with kdm 
reads the /etc/kde/startup/agent-startup.sh file, but that is not the case 
when I use kdm to launch other WMs, like fluxbox or enlightenment.

Enlightenment has its own startup directory for launching applications at 
start up (.e/e/applications/startup/), but placing in there the agent-
startup.sh file does not launch gpg-agent.  :-(
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Starting up gpg-agent (and ssh-agent?)
  2010-05-25 21:59   ` Mick
@ 2010-05-28 17:30     ` Mick
  0 siblings, 0 replies; 5+ messages in thread
From: Mick @ 2010-05-28 17:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 2917 bytes --]

On Tuesday 25 May 2010 22:59:45 you wrote:
> On Tuesday 25 May 2010 20:05:12 Alan McKinnon wrote:
> > On Tuesday 25 May 2010 17:02:55 Mick wrote:
> > > Hi All,
> > >
> > > I have asked a similar question on this M/L in the past.  There seems
> > > to be different ways of making sure that gpg-agent is started prior to
> > > the desktop being launched, but I can't get any of these to work with
> > > enlightenment, which I am currently trying out.
> > >
> > > Previously, I was using almost exclusively Fluxbox, which when started
> > > with startx uses /etc/X11/xinit/xinitrc.d/20-gpg-agent as detailed
> > > here:
> > >
> > > http://bugs.gentoo.org/show_bug.cgi?id=258944
> > >
> > > Starting Fluxbox using xdm was less successful.  It doesn't seem to
> > > read /etc/X11/xinit/xinitrc.d/20-gpg-agent.  I also tried different
> > > things like using ~/.xsession, or ~/.xinitrc, or hacking
> > > /etc/X11/Sessions/fluxbox, but nothing appeared to work cleanly.
> > >
> > > Now I use kdm (with /etc/init.d/xdm) to launch enlightenment, but kdm
> > > does not read /etc/X11/xinit/xinitrc.d/20-gpg-agent either.  When kdm
> > > is used to launch KDE then the file /etc/kde/startup/agent-startup.sh
> > > is parsed and everything works as expected within KDE.  Enlightenment
> > > does not have anything similar and kdm itself does not read
> > > /etc/kde/startup/agent-startup.sh.
> > >
> > > What would you recommend I use to launch gpg-agent so that it works
> > > with kdm/Enlightenment?
> >
> > display managers do not use *xinitrc*, that is why it is failing with
> > every dm you have tried
> >
> > Those files are read by startx and you should treats them as if they are
> >  read only by startx
> 
> Ahhh! I see ...
> 
> > You have already found the correct way to start apps in kdm, that is
> > where you should launch gpg-agent
> 
> Hmmm, you lost me there Alan.  I have noticed that launching KDE with kdm
> reads the /etc/kde/startup/agent-startup.sh file, but that is not the case
> when I use kdm to launch other WMs, like fluxbox or enlightenment.
> 
> Enlightenment has its own startup directory for launching applications at
> start up (.e/e/applications/startup/), but placing in there the agent-
> startup.sh file does not launch gpg-agent.  :-(

This was simpler than I thought.  The 'Custom' session in the kdm drop down 
actually reads ~/.xsession, instead of 
/usr/share/apps/kdm/sessions/fluxbox.desktop.  Once I discovered that I added 
this much in it just before the exec line and it works just fine!
==================================
if [ -x /usr/bin/gpg-agent ]; then
        kill $(ps ux | awk '/gpg-agent/ && !/awk/ {print $2}') >/dev/null 2>&1
fi

if [ -x /usr/bin/gpg-agent ]; then
  eval "$(/usr/bin/gpg-agent --daemon)"
fi 

exec /usr/bin/enlightenment_start
==================================

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-28 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-25 15:02 [gentoo-user] Starting up gpg-agent (and ssh-agent?) Mick
2010-05-25 19:05 ` Alan McKinnon
2010-05-25 21:59   ` Mick
2010-05-28 17:30     ` Mick
2010-05-25 19:24 ` Jacob Todd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox