Barcode reader for Sailfish OS.
Based on the original CodeReader app by Steffen Förster.
At some point the original one just stopped working and I had no choice but to fix it!
It scans all kinds of 1D and 2D barcodes (e.g. QR codes). Decoded barcodes can be copied to the clipboard, URLs can be opened in the browser, contacts and calendar events in various formats can be decoded and saved, and so on.
This is basically a copy of what can be installed from the Jolla Store but includes 64-bit build too.
Source code: https://github.com/monich/sailfish-barcode
Happy scanning!
Comments
amaretzek
Mon, 2022/05/02 - 00:09
Permalink
SFOS 4.4.0.58, BarCode 1.0.47, (on X, if it matters at all). To import contacts, I have now in the desktop file:
[X-Sailjail]
Permissions=Phone;MediaIndexing;UserDirs;Accounts;Contacts;Privileged;RemovableMedia;CommunicationHistory
OrganizationName=com.jolla
ApplicationName=CodeReader
This way I don't see the previous history, but it is not gone. Will hunt this down another day..
Regards
slava
Mon, 2022/05/02 - 00:19
Permalink
would work even better))
amaretzek
Mon, 2022/05/02 - 15:53
Permalink
Hmmm, I did this... For some reason, I concluded that it doesn't work. Have to retest... Thanks (problem between chair and kbd??;)
rolfa
Wed, 2021/11/17 - 18:52
Permalink
1) It was not able to read my Swiss Covid Certificate from paper (I'll blame Xperia XA2's camera).
2) It successfully decoded my Swiss Covid Certificate from a screenshot. Thanks for your work!
slava
Thu, 2021/11/18 - 01:33
Permalink
Yeah, the COVID Certificate QR-code is quite dense, devices with a poor camera may have trouble decoding it. I do have a few ideas how to increase the chances of a successful detection by applying some image processing magic to the captured image but there's always something else that grabs my attention when I have some time to spare on a side project...
amaretzek
Tue, 2021/10/26 - 21:57
Permalink
Hi. Version 1.0.42 drops VCF files in "Downloads", but for importing to work in 4.2.0.21 it has to be "Documents"... Thanks
slava
Sat, 2021/10/30 - 16:48
Permalink
Actually, it doesn't really matter - when jolla store apps get sandboxed (ain't they already?), vcf import will most likely be completely broken anyway, no matter where you put the temporary files))
amaretzek
Sun, 2021/10/31 - 16:10
Permalink
So, dropping the temporary file to "Documents" is not option? 43 drops them in "Downloads", which is a no-go...
amaretzek
Tue, 2021/11/02 - 04:03
Permalink
So I edited the contacts desktop file to make it work...
amaretzek
Fri, 2021/11/05 - 23:31
Permalink
SFOS 4.3 has "UserDirs", importing works out of the box.. (tested on XA2)
slava
Sat, 2021/11/06 - 01:01
Permalink
Which UserDirs, where?
amaretzek
Sat, 2021/11/06 - 02:21
Permalink
jolla-contacts.desktop:
4.2(X):
[X-Sailjail]
Permissions=Bluetooth;Phone;Email;MediaIndexing;Pictures;Accounts;Contacts;Synchronization;Privileged;Sharing;RemovableMedia;Documents;Downloads
(dir. Downloads added by me)
4.3(XA2):
[X-Sailjail]
Permissions=Phone;MediaIndexing;UserDirs;Accounts;Contacts;Privileged;Sharing;RemovableMedia
(original)
slava
Sat, 2021/11/06 - 02:48
Permalink
Oh man. It's such a moving target. At the moment I just don't feel like chasing this thing around. But I'll keep it in mind.
amaretzek
Sat, 2021/11/06 - 18:20
Permalink
ATM, it works (as is, in 4.3)... Concerning translation, I'll have a look later on this month...
slava
Tue, 2021/10/26 - 23:57
Permalink
Honestly speaking, this starts to be annoying. It used to be /tmp (where else you would drop temporary files) then it had to be moved under home (Downloads is kind of temporary place except that it never gets cleaned up) and now you say it has to be Documents. What's next?
amaretzek
Wed, 2021/10/27 - 00:50
Permalink
This is a consequence of sailjail, right? I don't know about others, but use your QR apps quite often. Also see "https://forum.sailfishos.org/t/4-0-1-45-can-not-import-vcard-vcf-file/48...". I just imported a few calendar events via QR and it was a PITA because of the hight density of the QR-code... And, for your question, what is next, you should be in a good position to get an official answer... ;)
slava
Wed, 2021/10/27 - 13:05
Permalink
Yes, this vcf issue is definitely caused by sailjail aka sadboxing, contact import is also broken and I'm sure we will keep discovering more issues. I guess it's time to start producing separate builds - a slightly broken one for Jolla Store and one for OpenRepos which opts out of sadboxing.
This sailjail thing is so destructive that I'd seriously consider stopping Sailfish OS app development when/if it becomes mandatory even for side-loaded apps e.g. OpenRepos. It just won't be possible to do anything non-trivial from a sadbox and doing trivial thing.. meh.
When I learned about upcoming sadboxing I stopped updating Sailfish OS on my daily phone))