[Bug 684902] Re: gnupg-agent not running properly

BryanFRitt 684902 at bugs.launchpad.net
Sat Mar 12 13:32:19 UTC 2016


I found a script that helps to fix this (or at least passes Kleopatra self test for 'Gpg-Agent Connectivity' now)
Found this in ~/.gnupg/gpg-agent-start.sh 
(don't remember details behind why I originally had this file, and how it later lost execution permission.
But one I gave it execution permission and ran it, the remaining Kleopatra test passed. 'Gpg-Agent Connectivity')
[Note: using Debian and KDE]

#!/bin/bash

# http://www.linuxquestions.org/questions/linux-security-4/gpg-gpg-
agent-cant-connect-to-root-gnupg-s-gpg-agent-611843-print/

# Decide wether to start gpg-agent daemon.
# Create necessary symbolic link in $HOME/.gnupg/S.gpg-agent

# modified slightly from original
# Whatever this file does, it helps make it so the the Kleopatra Self-Test Results for 'Gpg-Agent Connectivity' pass

SOCKET=S.gpg-agent
#PIDOF=$(pidof gpg-agent)
RETVAL=$?

if [ "$RETVAL" -eq 1 ]; then
        echo "Starting gpg-agent daemon. "
        eval "$(gpg-agent --daemon)"
else
        echo "Daemon gpg-agent already running. "
fi

#echo " Nasty way to find gpg-agent's socket file... "
GPG_SOCKET_FILE=$(find /tmp/gpg-* -name $SOCKET)
echo "Updating socket file link. "
cp -fs "$GPG_SOCKET_FILE" "$HOME/.gnupg/S.gpg-agent"

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to Kubuntu PPA.
https://bugs.launchpad.net/bugs/684902

Title:
  gnupg-agent not running properly

To manage notifications about this bug go to:
https://bugs.launchpad.net/kubuntu-ppa/+bug/684902/+subscriptions




More information about the kubuntu-bugs mailing list