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]
I found a script that helps to fix this (or at least passes Kleopatra self test for 'Gpg-Agent Connectivity' now) gpg-agent- start.sh
Found this in ~/.gnupg/
(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.linuxquesti ons.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. gnupg/S. gpg-agent
# Create necessary symbolic link in $HOME/.
# 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... " FILE=$( find /tmp/gpg-* -name $SOCKET) .gnupg/ S.gpg-agent"
GPG_SOCKET_
echo "Updating socket file link. "
cp -fs "$GPG_SOCKET_FILE" "$HOME/