password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 8d267c480e1f04832bd6110e73411dee63bbf042
parent 98193d3bbb3538eda457d0db4ccccbcc4b04ce3d
Author: Filippo Valsorda <hi@filippo.io>
Date:   Sun, 19 Apr 2020 18:41:25 -0400

platform/darwin: drop using "display" to show QR codes

This doesn't detect if XQuartz is installed and running, so it's broken
in most setups, the experience is poor regardless, since it's not
displayed inline in the terminal, but leaves a window that requires
closing, and anyway the the utf8 mode works perfectly on both iTerm2 and
Terminal.app.

Diffstat:
Msrc/platform/darwin.sh | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh @@ -34,10 +34,6 @@ tmpdir() { qrcode() { if type imgcat >/dev/null 2>&1; then echo -n "$1" | qrencode --size 10 -o - | imgcat - elif type gm >/dev/null 2>&1; then - echo -n "$1" | qrencode --size 10 -o - | gm display -title "pass: $2" -geometry +200+200 - - elif type display >/dev/null 2>&1; then - echo -n "$1" | qrencode --size 10 -o - | display -title "pass: $2" -geometry +200+200 - else echo -n "$1" | qrencode -t utf8 fi