Allow megapixles to act as a code reader
This adds a commandline option to megapixel to allow it run as a code scanner (#41). It either prints the first code found
$ megapixels -s
$ megapixels -s auto
$ megapixels --code_scanner
or the first one tapped
$ megapixels -s man
The code is printed to stdout. Hence, all other printing to stdout was replace with g_message
, g_warning
, or g_error
.
Closes #41
Edited by Administrator