Page MenuHomePhabricator (Chris)

No OneTemporary

Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
diff --git a/README.md b/README.md
index 3f86cfa..a20f5b0 100644
--- a/README.md
+++ b/README.md
@@ -1,60 +1,62 @@
# barcoder
Cheap, nasty tool to put clipboard or stdin into a barcode (so you can copy to a smartphone)
I really just developed this for myself. You're welcome to debug it, package it, redistribute it, refactor it...
-You could re-jig the whole thing to use [prison](https://github.com/KDE/prison) instead of wastefully spawning extra processes.
+You'll find that if you try to encode a whole book into it, it segfaults... I'll look into that later...
+I've linked against libqrencode and libdmtx but I also _completely absorbed_ the files from the excellent project `qqrencode` into the structure so that they just got built in... To simplify installation. It is also released under an MIT licence, woo!
I've included a couple of screenshots at the end of the readme.
-But for what I wanted, it works.
+For what I wanted, it works.
Example setup for klipper:
* Right-click on klipper in your system tray
* Select "Configure" from the context menu
* In the "Actions" tab, under "Action List", add a new action.
* For the regular expression, enter `.*` to capture everything.
* For description, write "Show Barcode" (or whatever you want)
* Add a command. In the command entry field, write `echo "%s"|barcoder` (where "barcoder" is the path to your barcoder executable)
Now, any time that you want klipper to generate a barcode like it used to in the good old days (a couple years ago):
* Left-click klipper in your system tray
* hover over the clip you want to share
* Press the little square icon which is supposed to represent clipboard actions
* Click "Show Barcode" (this is your description from earlier)
* Open your phone's barcode scanner and point it at the barcode
* voila, depending on your phone's setup, you now have the text info on your phone ready to paste where you want
To make:
-* `sudo apt-get install build-essentials qt5-default`
+* `sudo apt-get install build-essentials qt5-default libdmtx-dev libqrencode-dev`
Then:
* `cd barcoder && qmake && make` .. manually move barcoder into your path or a known location
* *OR*
* use qtcreator
* *OR*
* adapt to your fancy cmake thingy
Requirements:
+* objdump -x barcoder|grep NEEDED
+* NEEDED libqrencode.so.3
+* NEEDED libdmtx.so.0
+* NEEDED libQt5Svg.so.5
* NEEDED libQt5Widgets.so.5
* NEEDED libQt5Gui.so.5
* NEEDED libQt5Core.so.5
* NEEDED libstdc++.so.6
* NEEDED libgcc_s.so.1
* NEEDED libc.so.6
+
These libraries are already installed on both your development machine _and_ the machine with Klipper.
-
- To get the actual barcoding functionality there are two additional binaries you need, for now: `dmtxwrite` and `qrencode`.
- You can install both on ubuntu or similar by typing:
-`sudo apt-get install dmtx-utils qrencode`
*****
![](http://i.imgur.com/34AUDS5.png "Example of configuration")
***
![](http://i.imgur.com/4s0WHiM.png "Example of invoking a custom action")
![](http://i.imgur.com/o5Z34dj.png "Example of generated barcodes")

File Metadata

Mime Type
text/x-diff
Expires
Mon, Jun 15, 11:22 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71893
Default Alt Text
(3 KB)

Event Timeline