Skip to content

Instantly share code, notes, and snippets.

@maxdee
Last active October 9, 2023 00:02
Show Gist options
  • Save maxdee/604a8122549139cebdcfc491d780b90e to your computer and use it in GitHub Desktop.
Save maxdee/604a8122549139cebdcfc491d780b90e 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