Use PASSWORD_STORE_DIR in auth-source-pass when set

* lisp/auth-source-pass.el (auth-source-pass-filename): Initialize to
PASSWORD_STORE_DIR environment variable when set.  (Bug#29663)
This commit is contained in:
Stefan Kangas 2019-10-06 04:02:27 +02:00
parent 6297eb0fca
commit 6b2745fe2e

View file

@ -45,7 +45,8 @@
:group 'auth-source
:version "27.1")
(defcustom auth-source-pass-filename "~/.password-store"
(defcustom auth-source-pass-filename
(or (getenv "PASSWORD_STORE_DIR") "~/.password-store")
"Filename of the password-store folder."
:type 'directory
:version "27.1")