m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorFilippo Valsorda <hi@filippo.io>2020-04-19 18:41:25 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2020-04-19 23:36:59 -0600
commit8d267c480e1f04832bd6110e73411dee63bbf042 (patch)
tree46edf4fc477b117c0d934c68604a114db272eef9 /src/platform
parent98193d3bbb3538eda457d0db4ccccbcc4b04ce3d (diff)
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 (limited to 'src/platform')
-rw-r--r--src/platform/darwin.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
index 342ecce..1222040 100644
--- 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