]> git.pld-linux.org Git - packages/gnupg2.git/commitdiff
- handle seahorse-agent, too auto/th/gnupg2-2.1.14-0.1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 1 Aug 2016 15:26:26 +0000 (17:26 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 1 Aug 2016 15:26:26 +0000 (17:26 +0200)
gnupg-agent.sh

index 68ec6f4260cd5d4607e35638f15a02e709bd2229..100ad8b0d5a202eccdaa1b5a190d52ba4ba0357d 100644 (file)
@@ -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
This page took 0.095644 seconds and 4 git commands to generate.