Page 1 of 1

How to add commands to LXDE autostart

Posted: Mon Mar 16, 2020 5:58 am
by FakuVe
Hi there,

I am creating a Piano out of a bare MIDI Keyboard by just putting a Pi on it and running the synth.
So I need to autostart properly the programs. For that I just tweaked succesfully
/.config/lxsession/LXDE-pi/autostart
adding the programs I need to be started

Code: Select all

@qsynth
@vmpk
But also I need to run a command to route the MIDI throghout this programs

Code: Select all

aconnect 20:0 129:0
So I put it below like this

@aconnect 20:0 129:0

But its not making any effect.



Any idea what I am doing wrong?

Thanks very much

Re: How to add commands to LXDE autostart

Posted: Mon Mar 16, 2020 2:27 pm
by klricks
autostart processes each line independently at near the same time in a parallel fashion. Or it does not wait for the command on one line to finish before starting the next command on the next line. If you need your commands to be started sequentially then you need to put them in a script and then call the script from autostart.