[packages/gnupg2] - handle seahorse-agent, too
arekm
arekm at pld-linux.org
Mon Aug 1 17:26:31 CEST 2016
commit d0a8b174d4234abdb8d3250b38377d440352b6ca
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
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
More information about the pld-cvs-commit
mailing list