View previous topic :: View next topic |
Author |
Message |
NP_complete Tux's lil' helper

Joined: 21 Mar 2009 Posts: 139
|
Posted: Sat Mar 01, 2025 3:27 am Post subject: Increasing GPG passphrase caching interval under GNOME |
|
|
I am using Code: | gsettings set org.gnome.crypto.cache gpg-cache-method 'timeout'
gsettings set org.gnome.crypto.cache gpg-cache-ttl 34560000
gpg-agent --max-cache-ttl 34560000
gnome-keyring-daemon -r
| and it doesn't work, i.e., after roughly 5 minutes, I still get prompted to enter the passphrase.
Am I doing it wrong, or this is a buggy behavior? Is there a workaround for this?
Here is some background if it's relevant. I use pinentry-gnome3, and my .authinfo.gpg (created originally for Emacs) holds a password that gets fed to isync/mbsync. mbsync needs to run periodically and relies on the password for authentication.
Many thanks. |
|
Back to top |
|
 |
netfab Veteran

Joined: 03 Mar 2005 Posts: 1981 Location: 127.0.0.1
|
Posted: Sat Mar 01, 2025 2:27 pm Post subject: |
|
|
Hi,
I don't know GNOME, I don't know if such options can be setted up using gsettings, and I don't know how gpg-agent is started from a GNOME session.
Here is what I know : you may try to set the wanted value directly into gpg-agent configuration file :
Code: |
$ grep -B 1 ttl ~/.gnupg/gpg-agent.conf
# Cache settings
default-cache-ttl 300
default-cache-ttl-ssh 300
|
I guess that max-cache-ttl would also work. Don't forget to restart gpg-agent after changes. |
|
Back to top |
|
 |
NP_complete Tux's lil' helper

Joined: 21 Mar 2009 Posts: 139
|
Posted: Sun Mar 02, 2025 2:53 am Post subject: |
|
|
@netfab, thanks for your help. This old-fashioned solution works. That said, if anybody on here can come up with a GUI-based solution, please do. |
|
Back to top |
|
 |
|