On Tue, 6 Apr 2004 07:58:58 +0200 Thomas Reitelbach <[EMAIL PROTECTED]> wrote:
> On Tuesday 06 April 2004 01:16, Pollywog wrote: > > If anyone gets gpg-agent to work with kdm or gdm running your sessions, > > please tell us how you did it. I have disabled kdm so that I can use the > > GnuPG feature in Licq without having to put my passphrase in the config > > file. I seem to have caused some other problems (with kgpg and > > Sylpheed-Claws) by doing this. I can't sign outgoing emails within > > Sylpheed anymore, I have to use kgpg and copy/paste. I have found ways to > > get around the problems but it would be nice to be able to use kdm or gdm > > again. > > gpg-agent throws a environment variable on startup. this variable must be > available to all programs that use the agent. > > for this reason i put in my ~/.xsession: > > #!/bin/bash > eval "$(/usr/bin/gpg-agent --daemon)" This is what I have in my .xinitrc: ###### begin ####### #!/bin/sh PG_TTY=`tty` export GPG_TTY if test -f $HOME/.gpg-agent-info && \ kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/nu ll; then GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info` export GPG_AGENT_INFO else eval `gpg-agent --daemon` echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info fi exec startkde ##### end ##### That works, but I thought .xsession was only used by xdm, not kdm or gdm. If I am wrong about that, putting the script in .xsession might be the ticket. -- Andrew ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Licq-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/licq-devel