Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Increasing GPG passphrase caching interval under GNOME
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
NP_complete
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2009
Posts: 138

PostPosted: Sat Mar 01, 2025 3:27 am    Post subject: Increasing GPG passphrase caching interval under GNOME Reply with quote

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
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1981
Location: 127.0.0.1

PostPosted: Sat Mar 01, 2025 2:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum