Initial implementation of scanning captured screenshot for barcodes
Motivation: I was getting annoyed by having to focus my smartphone camera on glossy screens to scan QRCodes. Thought this might make things a little easier for me.
If ZXing library is found on the system, we enable the qrcode scanner in the build and show a button in the GUI. The scanner can scan the captured image and is copied to the clipboard on request.
The code needs a little more testing. I have developed it on my older KDE desktop and cherry-picked the patch and fixed all the CI failures one by one.
UX Wise, experiments I did:
- I automatically scanned and processed the screenshot and copied the qrcode, but losing my clipboard whenever i screenshot something was not good.
- I moved the copy functionality to a copy button in the notification, but two clicks to copy a link seemed annoying.
So settled with this approach. Works well enough for my use case, but feel free to suggest changes.