From cd762cde4a0bed83a89fb44d0ed37e6416a894dd Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 18 Nov 2019 12:18:56 +0100 Subject: [PATCH] Fix rofi-gopass to use correct user field gopass, by default creates a field called `username` to contain the corresponding login name. rofi-gopass was looking for a field called `user`, and ignored username which lead to it only inputting the password for any site where gopass created the login credentials. This is now fixed, all that remains is to revert the manually changed fields back to `username`. --- .local/bin/rofi-gopass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/rofi-gopass b/.local/bin/rofi-gopass index 8018cf2..b6a9224 100755 --- a/.local/bin/rofi-gopass +++ b/.local/bin/rofi-gopass @@ -108,7 +108,7 @@ autopass() { local autotype entry="${1}" autotype="$(gopass show "${entry}" autotype)" - autotype="${autotype:-user :tab pass}" + autotype="${autotype:-username :tab pass}" for word in ${autotype}; do case "$word" in @@ -226,7 +226,7 @@ main() { exit ;; "11") - printf '%s' "$(gopass show "${entry}" user)" | _dotool type + printf '%s' "$(gopass show "${entry}" username)" | _dotool type exit ;; "12")