From cdc0088ef4b90af8668a056e2ec24a77582f261f Mon Sep 17 00:00:00 2001 From: "Christian P. V. Christoffersen" <88783438+br-cpvc@users.noreply.github.com> Date: Fri, 31 Mar 2023 14:50:40 +0200 Subject: [PATCH] added set_gnome_key_agent_ttl.sh --- set_gnome_key_agent_ttl.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 set_gnome_key_agent_ttl.sh diff --git a/set_gnome_key_agent_ttl.sh b/set_gnome_key_agent_ttl.sh new file mode 100755 index 0000000..43f4db2 --- /dev/null +++ b/set_gnome_key_agent_ttl.sh @@ -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 +