Hi all!
I want to run a processing sketch on startup of my raspberry pi.
therefore I added this line to /home/esc/.config/lxsession/LXDE-pi/autorun
:
sudo /home/esc/Applications/processing-4.1.2/processing-java --sketch=/home/esc/Applications/sketchbook/elisas_synchronotron --run
this does not work - same when running the same line from a bashfile startSketch.sh
:
#!/usr/bin/env bash
sudo /home/esc/Applications/processing-4.1.2/processing-java --sketch=/home/esc/Applications/sketchbook/elisas_synchronotron --run
The error in both cases is:
esc@raspberrypi:~ $ sudo /home/esc/Desktop/startSketch.sh
No library found for controlP5
No library found for processing.io
No library found for hypermedia.net
Libraries must be installed in a folder named 'libraries' inside the sketchbook folder (see the Preferences window).
mySketch.pde:0:0:0:0: The package “controlP5” does not exist. You might be missing a library.
If I type the same command directly into my terminal, the sketch starts as expected, the libraries are found:
esc@raspberrypi:~ $ sudo /home/esc/Applications/processing-4.1.2/processing-java --sketch=/home/esc/Applications/sketchbook/mySketch --run
......(var output from my sketch)
it works just A-ok! Why?
Also, if I start the GUI and press play it works as well.
My sketchfolder is set to /home/esc/Applications/sketchbook
in the settings and my libraries are all in /home/esc/Applications/sketchbook/libraries
installed with the GUI tool “manage libraries…”.
what am I missing?
I’m relatively new to linux&raspbian so i might just be something with folder read/write permissions, or with the sudo
?
thanks!
some infos about my setup:
processing 4.1.2
Raspbian GNU/Linux 11 (bullseye)
Raspberry Pi 3 Model B Rev 1.2