commit d0a8b174d4234abdb8d3250b38377d440352b6ca
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Mon Aug 1 17:26:26 2016 +0200

    - handle seahorse-agent, too

 gnupg-agent.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gnupg-agent.sh b/gnupg-agent.sh
index 68ec6f4..100ad8b 100644
--- a/gnupg-agent.sh
+++ b/gnupg-agent.sh
@@ -14,7 +14,8 @@ fi
 if grep -q "^[[:blank:]]*use-agent" ${CFG} 2>/dev/null; then
        if [ -f "${HOME}/.gnupg/GPG_AGENT_INFO" ] && \
                        pid="$(cut -d: -f2 $HOME/.gnupg/GPG_AGENT_INFO)" && \
-                       [ "$(resolvesymlink "/proc/$pid/exe")" = 
"/usr/bin/gpg-agent" ]; then
+                       agent="$(resolvesymlink "/proc/$pid/exe")" && \
+                       [ "$agent" = "/usr/bin/gpg-agent" -o "$agent" = 
"/usr/bin/seahorse-agent" ]; then
                export GPG_AGENT_INFO="$(cat ${HOME}/.gnupg/GPG_AGENT_INFO)"
        else
                if [ "$seahorse" = "no" ]; then
@@ -26,5 +27,7 @@ if grep -q "^[[:blank:]]*use-agent" ${CFG} 2>/dev/null; then
                export GPG_AGENT_INFO
        fi
 fi
+unset agent
+unset seahorse
 unset CFG
 unset pid
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnupg2.git/commitdiff/d0a8b174d4234abdb8d3250b38377d440352b6ca

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to