From 6b2745fe2ecc5190e90f398022710256beb5c4e1 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 6 Oct 2019 04:02:27 +0200 Subject: [PATCH] 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) --- lisp/auth-source-pass.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- 2.39.5