Comment 26 for bug 183514

Revision history for this message
Tom Hudson (trhudson) wrote : Re: [hardy] seahorse agent no longer asks for the passphrase

I'm running in Gnome. I installed KDE yesterday evening (I didn't try to send email while in KDE) and when I went back to Gnome (my default display manager) the issue happened. Anyway...

When I put the file back, I get the error message again. When I run the "ps -ef | grep agent" I get the following output:
1002 9175 9116 0 14:24 ? 00:00:00 /usr/bin/gpg-agent --daemon --sh --write-env-file=/home/deathmoon/.gnupg/gpg-agent-info-deathmoon-desktop /usr/bin/dbus-launch --exit-with-session /usr/bin/pulse-session /usr/bin/seahorse-agent --execute x-session-manager
1002 9179 1 0 14:24 ? 00:00:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/pulse-session /usr/bin/seahorse-agent --execute x-session-manager
1002 9195 9116 0 14:24 ? 00:00:00 /usr/bin/seahorse-agent --execute x-session-manager
1002 9518 9494 0 14:25 pts/0 00:00:00 grep agent

The 90gpg-agent file contains the following:
: ${GNUPGHOME=$HOME/.gnupg}

GPGAGENT=/usr/bin/gpg-agent
PID_FILE="$GNUPGHOME/gpg-agent-info-$(hostname)"

if grep -qs '^[[:space:]]*use-agent' "$GNUPGHOME/gpg.conf" "$GNUPGHOME/options" &&
   test -x $GPGAGENT &&
   { test -z "$GPG_AGENT_INFO" || ! $GPGAGENT 2>/dev/null; }; then

   if [ -r "$PID_FILE" ]; then
       . "$PID_FILE"
   fi

   # Invoking gpg-agent with no arguments exits successfully if the agent
   # is already running as pointed by $GPG_AGENT_INFO
   if ! $GPGAGENT 2>/dev/null; then
       STARTUP="$GPGAGENT --daemon --sh --write-env-file=$PID_FILE $STARTUP"
   fi
fi