Skip to content

Commit

Permalink
added set_gnome_key_agent_ttl.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
br-cpvc committed Mar 31, 2023
1 parent 4b1ceb9 commit cdc0088
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions set_gnome_key_agent_ttl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
set -e

# from: https://askubuntu.com/questions/340809/how-can-i-adjust-the-default-passphrase-caching-duration-for-gpg-pgp-ssh-keys

# gsettings list-keys org.gnome.crypto.cache
# gpg-cache-method
# gpg-cache-ttl

# default:

# gsettings get org.gnome.crypto.cache gpg-cache-ttl
# 300

# gsettings get org.gnome.crypto.cache gpg-cache-method
# 'session'

gsettings set org.gnome.crypto.cache gpg-cache-method 'timeout'
gsettings set org.gnome.crypto.cache gpg-cache-ttl 1800
gnome-keyring-daemon -r

0 comments on commit cdc0088

Please sign in to comment.