[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.
This commit is contained in:
parent
76b5335661
commit
8dcbb985c1
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue