pass-otp icon indicating copy to clipboard operation
pass-otp copied to clipboard

uri -q example in readme fails for me

Open Integralist opened this issue 4 years ago • 1 comments

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!

Integralist avatar Dec 05 '19 15:12 Integralist

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

acidvegas avatar Apr 12 '20 02:04 acidvegas