qr-backup icon indicating copy to clipboard operation
qr-backup copied to clipboard

Remove dependence on command-line tools

Open za3k opened this issue 3 years ago • 2 comments

Remove dependencies on all command-line tools:

  • gpg
  • zbarimg (+convert, +grep) (See #10 #9 also)
  • zbarcam
  • (which)

za3k avatar Sep 22 '22 23:09 za3k

(which)

i've looked at this in the code and i think the proper way to do this is simply not check if the program is present and try to execute it directly. you will get an error and then you handle that appropriately.

i was about to go on and do this, but there's calls like this everywhere in the code and I wanted to make sure that made sense for you before going ahead. :)

anarcat avatar Mar 03 '23 16:03 anarcat

I'm wasn't planning to remove dependence on which. The reason being, if I just remove dependency on all the other command-line tools, the which dependency disappears automatically.

That said if you give me a PR I'd accept it.

Edit: I still want to fail-fast for the new version, so make sure to preserve that.

za3k avatar Mar 03 '23 17:03 za3k