reddit / emacs

How to prevent org-gcal from asking me for my password every time I sync?

mklsls · 2022-02-25 15:44
Hi guys! Every time I run `org-gcal-sync` from org-gcal ([https://github.com/kidd/org-gcal.el](https://github.com/kidd/org-gcal.el)), it asks me for the password again and again. https://preview.redd.it/wefjt0jc10k81.png?width=854&format=png&auto=webp&s=a9337fa87149111a1847c8f11af2e3077828a4d4 How to prevent this behavior? Thanks.
Acetylene · 2022-02-25 21:56
I was having the same problem, and this setting worked for me: (setq epa-file-cache-passphrase-for-symmetric-encryption t)
lstrang · 2022-02-26 12:01
If you're on linux, look into keychain. It allows one to enter your gpg passphrase once per reboot. There is a keychain-refresh-environment package for emacs to make sure emacs picks up the correct environment variable. Here is a start: https://www.cyberciti.biz/faq/ubuntu-debian-linux-server-install-keychain-apt-get-command