diff options
author | awy <awy@awy.one> | 2025-06-12 01:21:21 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-06-12 01:27:12 +0300 |
commit | 9f69468ed15db4230864cc0e6b971e0aa79753a9 (patch) | |
tree | 9b3e794b8f73d825cce0b3780ddce32eefc4972c | |
parent | 60588e772b45421037447218d477dbde140f5b46 (diff) |
fix for gpg. before it needed atleast one manual decrypt/encrypt/sign from
user to find pinentry. this fix probably breaks manual passphrase input from user. however it works with automatic gpg key opening.
-rwxr-xr-x | bin/mailsync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync index 43d76de..e13b40a 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -25,7 +25,7 @@ eval "$(grep -h -- \ "$HOME/.pam_environment" 2>/dev/null)" # For non-interactive shell (e.g. cron job) run only when the GPG key (in $GNUPGHOME or pass --homedir) is unlocked -tty -s || (echo "dummy" | gpg --sign --batch --pinentry-mode error -o /dev/null > /dev/null 2>&1) || exit +tty -s || (echo "dummy" | gpg --sign --batch --yes -o /dev/null > /dev/null 2>&1) || exit export GPG_TTY="$(tty)" |