Start gpg-agent and use pinentry-rofi

This commit is contained in:
Loic Nageleisen 2024-02-12 19:08:47 +01:00
parent 65065116be
commit 8e5883f4d3
Signed by: lloeki
GPG key ID: D05DAEE6889F94C2

View file

@ -2,4 +2,9 @@
#export GPG_TTY
#gpg-connect-agent updatestartuptty /bye >/dev/null
if ps -u lloeki | grep -v grep | grep -q gpg-agent; then
:
elif type pinentry-rofi /dev/null 2>&1; then
gpg-agent --homedir /home/lloeki/.gnupg --use-standard-socket --daemon --pinentry-program=/etc/profiles/per-user/lloeki/bin/pinentry-rofi
fi
# vim: ft=bash