From 8dcbb985c14fe61d66b401432ab077dd4f5df784 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 16 May 2020 10:40:19 +0200 Subject: [PATCH] [gopass] Fix entry selection Fixed entry selection not working with new type checking fallback mechanism, which would output to stdout, which the auto filling in turn attempted to read from. --- gopass/.local/bin/rofi-gopass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gopass/.local/bin/rofi-gopass b/gopass/.local/bin/rofi-gopass index 9e03429..80333c1 100755 --- a/gopass/.local/bin/rofi-gopass +++ b/gopass/.local/bin/rofi-gopass @@ -7,9 +7,9 @@ # passes along any options given to main script rofi_opts=("$@") _rofi() { - if type rofi 2>/dev/null; then + if type rofi 1>/dev/null 2>/dev/null; then rofi -dmenu -no-auto-select -i "${rofi_opts[@]}" "$@" -p "Entry" - elif type dmenu 2>/dev/null; then + elif type dmenu 1>/dev/null 2>/dev/null; then dmenu -i "${rofi_opts[@]}" "$@" -p "Entry" else exist rofi critical "rofi-gopass" || exit 0