Hey there,
I’m building my new rasperryPi 4b setup around the patchboxOS and would like to start my custom python script that is my midi composer. While i found it realtively easy to install the script with a module.json I cant get it to start.
I want to run my midiTracker which works fine manually.
Okay. New investigations: when actively launching the module with:
patchbox launch midiTracker-module
I get all the echo messages from my launch.sh Script, but python3 seems not to start, or start and close. As there is no visible curses interface, nor a python3 process.
It gets started as a background process, not attached to the current console. If you need the UI to be visible on the console, you should instead create a user and start it from its .bashrc, so every time you log in with the user, the command is automatically started for that user. I think it’s best to do it as a dedicated user rather than patch or pi user.
Thank you for the quick reply. This seems to make sense. I will try out this solution later. As I like the idea of having a module manage this interesting I’ll also try to work around the process not going to the foreground by invoking python in a new tmux session.
I’ll update this thread for anyone also interested in such a module.
Thank you!! This was the simplest way to run a Python script interactively on boot. After setting up my Python environment I simply added the last line python3 -i path/to/pythonscript.py to the end of .bashrc. It works without a screen and by ssh’ing into it. The console seems to load after jack, so my Python script requiring jack is having no problem.
Now to get a little screen (and eventually a Pisound).