From 58ae6ebbf455e64b430a6c62fa45d3c674829250 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 12 Dec 2025 18:13:57 +0100 Subject: Workaround gpg-agent.conf doesn't allow relative path to be called gpg-agent.conf doesn't permit the usage of $PATH or $HOME in the pinentry-program (https://dev.gnupg.org/T4588) So the work around is to template that file and expand the path correctly using the setup script (which is also copying the file correctly) This is favored over the use of /usr/local/bin because it doesn't need privileged execution of the setup script --- .gnupg/gpg-agent.conf | 7 ------- .gnupg/gpg-agent.conf.template | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 .gnupg/gpg-agent.conf create mode 100644 .gnupg/gpg-agent.conf.template (limited to '.gnupg') diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf deleted file mode 100644 index 6d38770..0000000 --- a/.gnupg/gpg-agent.conf +++ /dev/null @@ -1,7 +0,0 @@ -pinentry-program /usr/local/bin/pinentry-wrapper - -default-cache-ttl 3600 -default-cache-ttl-ssh 3600 -max-cache-ttl 3600 -max-cache-ttl-ssh 3600 -enable-ssh-support diff --git a/.gnupg/gpg-agent.conf.template b/.gnupg/gpg-agent.conf.template new file mode 100644 index 0000000..4d52149 --- /dev/null +++ b/.gnupg/gpg-agent.conf.template @@ -0,0 +1,7 @@ +pinentry-program ${HOME}/.local/bin/pinentry-wrapper + +default-cache-ttl 3600 +default-cache-ttl-ssh 3600 +max-cache-ttl 3600 +max-cache-ttl-ssh 3600 +enable-ssh-support -- cgit v1.2.3