From 1035cb9de88c884c11b0801b1c4f9b6e65fffe67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= <henrik.tjader@nordicsemi.no>
Date: Mon, 24 Jun 2024 13:22:07 +0200
Subject: [PATCH] On ubuntu rely on update-alternatives

---
 .gnupg/gpg-agent.conf | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf
index 6259422..5f0503c 100644
--- a/.gnupg/gpg-agent.conf
+++ b/.gnupg/gpg-agent.conf
@@ -3,6 +3,12 @@
 default-cache-ttl 21600
 max-cache-ttl 21600
 enable-ssh-support
+
+# On ubuntu use update-alternatives
+# To set the desired pinentry wrapper instead of setting pinentry-program
+
+# sudo update-alternatives --install /usr/bin/pinentry pinentry (gpgconf --list-dirs homedir)/pinentry-auto.sh 99
+
 # MUST be a full path
 # pinentry-program /usr/bin/pinentry-tty
 pinentry-program /home/USER/.gnupg/pinentry-auto.sh
-- 
GitLab