Comment 0 for bug 345727

Revision history for this message
Mackenzie Morgan (maco.m) wrote :

Binary package hint: seahorse-plugins

When gpg is first run, it's supposed to copy /usr/share/gnupg/options.skel into ~/.gnupg/gpg.conf however seahorse-agent is part of the default ubuntu-desktop session. Seahorse-agent writes an empty file there on its first run. This means "use-agent" isn't in there. If the user then installs kubuntu-desktop, seahorse-agent will still run instead of gpg-agent.

Net effect, if the following sequence of events occurs:
1. User installs Ubuntu
2. User logs into a GNOME session in Ubuntu
3. User installs kubuntu-desktop
4. User logs into KDE and uses KMail

The result is:
seahorse-agent, which is not compatible with KMail, is still running
KMail hangs when told to sign an email, finally throwing an error saying it couldn't get the passphrase

This is fixed by having use-agent in ~/.gnupg/gpg.conf...in other words, by having the skeleton file there instead of an empty file. If this is the case, seahorse-agent still runs in GNOME but gpg-agent runs in KDE, allowing KMail to function properly.