[PATCH v2 2/3] passmenu: don't quote PASSWORD_STORE_MENU_PROGRAM

sternenseemann sternenseemann at systemli.org
Fri Jun 11 22:26:02 UTC 2021


This mirrors what we are doing for PASSWORD_STORE_TYPE_PROGRAM and
allows passing extra options to the menu program via the environment
variable which seems desireable.

Moreover it is probably unlikely that anyone is installing their menu
programs into paths with spaces (or even uses tools with spaces in
their name…).
---

(unchanged)

 contrib/dmenu/passmenu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu
index f0c0d98..431da4a 100755
--- a/contrib/dmenu/passmenu
+++ b/contrib/dmenu/passmenu
@@ -29,7 +29,7 @@ password_files=( "$prefix"/**/*.gpg )
 password_files=( "${password_files[@]#"$prefix"/}" )
 password_files=( "${password_files[@]%.gpg}" )
 
-password=$(printf '%s\n' "${password_files[@]}" | "$PASSWORD_STORE_MENU_PROGRAM" "$@")
+password=$(printf '%s\n' "${password_files[@]}" | $PASSWORD_STORE_MENU_PROGRAM "$@")
 
 [[ -n $password ]] || exit
 
-- 
2.31.1



More information about the Password-Store mailing list