diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2019-10-06 04:02:27 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2019-11-02 01:33:40 +0100 |
commit | 6b2745fe2ecc5190e90f398022710256beb5c4e1 (patch) | |
tree | 81b5ece89a9c5f952ca2c19108254682b3144a7e /lisp/auth-source-pass.el | |
parent | 6297eb0fca9967649bcde6fd160bb6b5d3ce6878 (diff) | |
download | emacs-6b2745fe2ecc5190e90f398022710256beb5c4e1.tar.gz emacs-6b2745fe2ecc5190e90f398022710256beb5c4e1.tar.bz2 emacs-6b2745fe2ecc5190e90f398022710256beb5c4e1.zip |
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)
Diffstat (limited to 'lisp/auth-source-pass.el')
-rw-r--r-- | lisp/auth-source-pass.el | 3 |
1 files changed, 2 insertions, 1 deletions
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") |