FakuVe
Posts: 1
Joined: Mon Mar 16, 2020 5:26 am

How to add commands to LXDE autostart

Mon Mar 16, 2020 5:58 am

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

klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: How to add commands to LXDE autostart

Mon Mar 16, 2020 2:27 pm

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.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

Return to “Beginners”