Monday, August 1, 2011

Desktop QR Code Reader for Ubuntu

So, for a long time, I wanted something that could go from this:

to this:

And, I was frustrated that no one made it. I would have made it but decoding QR codes is just so darn difficult... that is until ZBar came along with QR Code support. Now, I have a button I can click to move it over. Unfortunately, it isn't /that/ easy. I genned this app up by taking a Gtk demo for making a system tray applet, adding some screen shot capabilities, pumping it into ZBar, then using some of the xosc overlay stuff to draw the outlines. It was pretty straightforward. You can get the code here:

ZBar is just awesome, it even gets the bizarre QR Codes:

Also, for your enjoyment, here's a video demonstrating it:

sudo add-apt-repository ppa:charles-cnlohr/qroverlay
sudo apt-get install qroverlay

NOTE: I do not have a menu icon for this so you will need to run it either from a terminal (qroverlay) OR you can type Alt+F2 and type qroverlay and click run (once it's installed).

Anyone who can help me to make it have a menu icon would be really great.