Skip to content

Instantly share code, notes, and snippets.

@RafaelQuirino
Forked from maxdee/plaunch.sh
Created October 1, 2018 18:19
Show Gist options
  • Save RafaelQuirino/18401f729f482f88a6264514952dd454 to your computer and use it in GitHub Desktop.
Save RafaelQuirino/18401f729f482f88a6264514952dd454 to your computer and use it in GitHub Desktop.
Launch Processing sketch from terminal
#!/bin/bash
# Place this file in a sketch folder and run it to launch your sketch
# You need to have processing-java installed https://github.com/processing/processing/wiki/Command-Line
# Usefull for developement when using other editors like Atom
# Usefull for launching with ssh, "DISPLAY=:0 ./plaunch.sh"
# Usefull for automaticaly launching a sketch on computer startup,
# specialy if you wish to be able to edit something in a .pde file and avoid having to re-export a application
processing-java --sketch="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" --output=/tmp/processing --force --run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment