tadfisher / pass-otp

A pass extension for managing one-time-password (OTP) tokens
GNU General Public License v3.0
1.3k stars 86 forks source link

uri -q example in readme fails for me #112

Open Integralist opened 4 years ago

Integralist commented 4 years ago

Hello 👋

I had originally setup pass otp by inserting a new QR code via zbarimg (which works fine, e.g. pass otp -c foo/bar/otp copies a 2FA code to my clipboard).

I noticed in the README that there was a way to display the QR code that was originally used as part of the insert operation, but when I try to use it I get output from ImageMagik instead of the QR?

pass otp uri -q foo/bar/otp

Version: ImageMagick 7.0.9-7 Q16 x86_64 2019-12-01 https://imagemagick.org                                                                                              
Copyright: © 1999-2020 ImageMagick Studio LLC                                                                                                                           
License: https://imagemagick.org/script/license.php                                                                                                                     
Features: Cipher DPC HDRI Modules OpenMP(3.1)                                                                                                                           
Delegates (built-in): bzlib freetype heic jng jp2 jpeg lcms ltdl lzma openexr png tiff webp xml zlib                                                                    
Usage: display [options ...] file [ [options ...] file ...]                                                                                                             

Image Settings:                                                                                                                                                         

...

display: delegate library support not built-in '' (X11) @ error/display.c/DisplayImageCommand/1877.

Any ideas what I might be missing?

Thanks!

acidvegas commented 4 years ago

It looks like pass-otp depends on qrencode to output a QR code. For some reason, using the same command you used, it was showing my a PNG via FEH to display the qr code.

It should pass -t ANSIUTF8 to the qrencode call but I dont think it is