From: Stefan Kangas Date: Sun, 6 Oct 2019 02:02:27 +0000 (+0200) Subject: Use PASSWORD_STORE_DIR in auth-source-pass when set X-Git-Tag: emacs-27.0.90~777 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6b2745fe2ecc5190e90f398022710256beb5c4e1;p=emacs.git 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) --- diff --git a/lisp/auth-source-pass.el b/lisp/auth-source-pass.el index c45c782c27c..524a72792cf 100644 --- a/lisp/auth-source-pass.el +++ b/lisp/auth-source-pass.el @@ -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")