You are not logged in.

praedor

Beginner

  • "praedor" started this thread

Posts: 2

Occupation: molecular biologist

  • Send private message

1

Monday, May 21st 2007, 10:57pm

Kmail, kgpg, and gpg-agent driving me nuts

I have Mandriva 2007 installed on two systems, a desktop and my laptop. Both installs are identical in all ways (same libs, updates, etc). On the desktop system, Kmail, Kgpg, and gpg-agent are all playing well together...they are working. On the laptop, however, gpg-agent will NOT create the required socket in the ~/.gnupg/ directory so every time KDE starts I get a complaint from Kgpg that gpg-agent is set to run but apparently is not running and that I need to correct this in Kgpg settings, etc. I cannot sign nor encrypt messages as a result on the laptop. If I run gpg-agent.sh (script containing: 'eval "$(gpg-agent --daemon)" ') manually, I get a message stating that the socket could not be created.

Again, no problems on the desktop system.

I have tried renaming the .gnupg directory and creating a new .gnupg directory by running gpg from the CLI, then copying the old conf files, etc, over to the new directory, but no go. If I start kwatchgnupg, the socket is created but instead of a problem with "socket could not be created" I get the message, "connection refused" when I then run the gpg-agent script - and kmail encryption and kgpg still wont work for me.

I have checked permissions and ownerships, I have copied the exact same conf files from the desktop over to the laptop. I have uninstalled and reinstalled gnupg. Nothing works. The laptop refuses to create the socket and work while the desktop has no issues at all.

Any ideas?

This post has been edited 1 times, last edit by "praedor" (May 22nd 2007, 2:51am)


praedor

Beginner

  • "praedor" started this thread

Posts: 2

Occupation: molecular biologist

  • Send private message

2

Tuesday, May 22nd 2007, 4:05pm

RE: Kmail, kgpg, and gpg-agent driving me nuts

Problem solved: i had placed the script I was using to start gpg-agent into my ~/.kde/Autostart directory on my laptop rather than the CORRECT ~/.kde/env directory. On my desktop, I had the script in both locations but because it was in the env subdirectory, it still worked on my desktop. Making the change to env from Autostart on my laptop fixed my problem and now Kmail, Kgpg, and gpg-agent works there as well.

3

Thursday, July 12th 2007, 6:30pm

RE: Kmail, kgpg, and gpg-agent driving me nuts

I am having the same problem with KDE 3.5.6 in FreeBSD but only when my default shell is csh or tcsh. If I change my default shell to bash, kgpg does not complain when KDE starts.

This is what I have in ~/.kde/env/gpg-agent.sh:

#!/bin/sh
if test -f $HOME/.gpg-agent-info && kill -0 `cut -d: -f 2 $HOME/.gpg-agent-in
fo` 2>/dev/null; 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


Does anyone know how I can change my default shell to tcsh without kgpg complaining that gpg-agent is not running?
Jabber: pollywog at jabber dot org