Giter VIP home page Giter VIP logo

screenshot-decoder's Introduction

About

A simple desktop App that decodes barcodes (or QR codes). Start the app, draw a selection around the code you wish to decode, and click "Decode". If successful, the decoded code is put into the system clipboard.

Linux

Build

mvn package -Plinux

Run

java -jar target/screenshot-decoder-1.0.0-full.jar

Notice that due to a clipboard persistence bug in X11-based operating systems, the decoded string will not stay in the clipboard once the application quits. One workaraound is to not click "Ok" on the popup before you've pasted the decoded code from the clipboard.

Optional I: Wrap the jar into one single executable shell script

cat src/main/scripts/stub.sh target/screenshot-decoder-1.0.0-full.jar > target/screenshot-decoder-linux.run
chmod +x target/screenshot-decoder-linux.run
  • Run by ./target/screenshot-decoder.run (or double click if your distro supports it).
  • If you get errors when running from the command line, you might have to set your DISPLAY env variable
export DISPLAY=":0.0"

Optional II: Add a launcher (Ubuntu Unity etc)

  • Edit the release/screenshot-decoder-linux.desktop file and fix the following paths:
Exec=/home/leerikss/github/screenshot-decoder/release/screenshot-decoder-linux.run
Icon=/home/leerikss/github/screenshot-decoder/src/main/resources/icons/screenshot-decoder.png
  • Drag the "Screenshot Decoder" launcher into your launchbar

OSX

Build a bundled native app

mvn package appbundle:bundle -Posx
  • The app "Screenshot decoder" is being generated into the target/screenshot-decoder-1.0.0/

Windows

  • Run
mvn package -Pwin
  • This generates the "screenshot-decoder-win.exe" file under the target/ folder

Eclipse

If you're using the Eclipse IDE, add the necessary eclipse project files by running

mvn eclipse:eclipse

Release

Prebuilt binaries for windows,OSX and Linux can be found in the release/ folder

Credits

screenshot-decoder's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.