Whats needed is for the GPG_AGENT_INFO environment variable to be set. As i was loading gpg-agent with a shell script nothing else was seeing this variable. The only way i can start gpg-agent properly is to put it into my /usr/bin/startkde script. Its in my xsession but that doesnt do anything, how are .xsession files supposed to work? Tom