I am trying to launch 2 python scripts in two separate terminals when I boot up my Pi to the Desktop.

In /home/pi/.config/lxsession/LXDE-pi/autostart the command below works

@lxsession -e python3 myscript.py

But when I try to add @lxsession -e python3 myscript2.py below that, then it doesn't launch the 2nd terminal window.

Furthermore, I cannot launch myscript2.py by itself either but it runs fine when executed from the terminal.

Is this something to do with permissions since it works fine for one script and not the other. The code is very simple so i'm not sure why it won't launch.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.