In kinda sorta related news, here's my super lame QR decoder one liner. It
takes a screenshot and looks for a qr code (actually for many bar code
formats) and then spits the results in a zenity window. Dependencies: scrot,
zbar-tools, zenity.
scrot /tmp/scrot_'%s.png' -e 'zbarimg -q $f|sed
I got all the bugs worked out that I am aware of. Here's version 1.0!
Direct download: http://7gfc2nsa8z.1fichier.com or http://v.gd/qk3ROf
GitHub repo: https://github.com/ssdclickofdeath/qrgui
I didn't know that it would be this hard to debug a shell script program like
this, and I'm not planning on learning more shell-scripting language, so I am
abandoning this project, probably forever. I am posting my final version
here; anyone should feel free to modify or complete it.
See
I just wanted to thank ssdclickofdeath, for the work he has done here. While
it might be a simple thing, just a frontend or a little gui for an
application, the truth is, everyone here talks a lot about free software
but it's so rare to see actual development taking place! You know like... a
I'm trying to upload qrgui to Gitorious, but when I enter this in the
terminal:
x@Inspiron-Libre:~/git/qrgui$ git push -u origin master
I get this error:
Read from socket failed: Connection reset by peer
fatal: The remote end hung up unexpectedly
I checked, and Git is trying to connect to
If I run this, the dialog boxes pop up and work, but nothing gets saved. The
script ends with this message: ./qrgui: line 21: (I'm not copying the script
line for line; it means the line with qrencode on it.) qrencode: command not
found. I know that qrencode is installed; I just used it on
I'd try supplying the full path to qrencode
It works now. I can't understand why that would make a difference. Is my
shell script looking for qrencode in the working directory?
I'd guess that PATH= probably has something to do with it?
I have qrgui working now. I'll do some final polishing, then post the final
version.
https://en.wikipedia.org/wiki/PATH_%28variable%29
Better use another name for the variable.
Apparently read don't like pipes. The explanation was beyond my understanding
but this works
var=$(command)
I can't seem to get the output from the zenity dialog box into the read
[variable here] command.
I'm just bumping this thread so it doesn't lock.
I'm working on a GUI based QR code reader, based on zenity. I'll post it when
I'm done.
The terminal averse types can add GUI dialogs easily with e.g. zenity. Left
as an exercise for the reader.
Kudos for the proper hash bang, description and license! If only all scripts
floating on the intarwebs had these integral parts...
ps. There's a QR code reader in the package
I don't think using cowsay is better.
How do I change it to accept spaces in the text? If I type in this is a
test., the only text that gets encoded is this.
Here is the fixed script.
#!/bin/bash
# This is an easy-to-use front end for qrencode, a QR code generator.
# qrencode must be installed for this script to work.
# In apt-get, run the command sudo apt-get install qrencode.
#
# To the extent possible under law, I waive all copyright and related
The qr.sh attachment is undownloadable. I get a 403 (Forbidden) error.
Here's the file gzipped.
The qr.sh attachment is undownloadable. I get a 403 (Forbidden) error.
For me as well. I ran into that issue earlier too
https://trisquel.info/en/issues/8153
I made a small shell script in about 10 minutes that simplifies making QR
codes with qrencode, available in Trisquel's repos. I place it into the
public domain with CC0.
Enter sudo apt-get install qrencode into the terminal to install qrencode, if
it hasn't been installed already.
Type
This is nice, but I think I've got it working slightly better. I've attached
a patch with my changes, just put the patch in the same directory as qr.sh
and run
patch qr.patch
and that should fix it up for you.
I am releasing this patch under the terms of the open source. Thank you
23 matches
Mail list logo