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
05-25-2010, 07:05 PM
Alan McKinnon
Starting up gpg-agent (and ssh-agent?)
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
05-25-2010, 07:24 PM
Jacob Todd
Starting up gpg-agent (and ssh-agent?)
You should look at net-misc/keychain.
05-25-2010, 09:59 PM
Mick
Starting up gpg-agent (and ssh-agent?)
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
05-28-2010, 05:30 PM
Mick
Starting up gpg-agent (and ssh-agent?)
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