Skip to content

Commit

Permalink
Don't wait for stdin
Browse files Browse the repository at this point in the history
Sometimes rofi hangs on waiting for stdin. This fixes the issue
  • Loading branch information
desdic authored and mattydebie committed Mar 27, 2020
1 parent 74ba373 commit a53cc1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bwmenu
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ DIR="$(dirname "$(readlink -f "$0")")"
source "$DIR/lib-bwmenu"

ask_password() {
mpw=$(rofi -dmenu -p "Master Password" -password -lines 0) || exit $?
mpw=$(printf '' | rofi -dmenu -p "Master Password" -password -lines 0) || exit $?
echo "$mpw" | bw unlock 2>/dev/null | grep 'export' | sed -E 's/.*export BW_SESSION="(.*==)"$/\1/' || exit_error $? "Could not unlock vault"
}

Expand Down

0 comments on commit a53cc1e

Please sign in to comment.