Supercollider headless autostart and/or single_click.sh

in a linux filesystem the enduser usually only has write-access to his/her own folder, so to edit files/create folders outside of that scope you have to either log in as a root or what is more common in contemporary debian based systems to tell the system that the next command is done with superuser rights aka “sudo command”.

if you’re running patchbox os or most other pi-specific debian based oses it should be as simple as typing in a terminal “sudo mkdir mymodule” for instance.

so the way to with my approach is to create a folder

sudo mkdir /usr/local/patchbox-modules/imported/mymodule

and create all the files mentioned in my post

sudo nano /usr/local/patchbox-modules/imported/mymodule/install.sh
sudo nano /usr/local/patchbox-modules/imported/mymodule/launch.sh
etc…

when you have all the files you should be able to enter “patchbox” into a commandline and see your new module in the module selection, just select it.

if you just copy my files, keep in mind the sc file must be /home/patch/Documents/scc/main.scd or you change the launch.sh and that you absolutely need to add
export QT_QPA_PLATFORM=“offscreen”
to the launch.sh if you want to have it autorun.

tell me if it works for you–

best

1 Like