autostart and lxterminal
Posted: Mon Oct 16, 2017 8:48 pm
I'm using a raspi PI with stretch updated to the latest apt-get etc.
If I enter in terminal:
A python program is started, the function is performed and afterwards I need to hit a button to close the session.
Now I have edited: and added the above line together with the @ prefix:
I reboot the system, the terminal window briefly appears, see no output (text) and waiting for the key to close the terminal session is not working. The project.py is made executable with chmod +x and the top line of the file contains the #!/path/to/python.
What could be the problem?
If I enter in terminal:
Code: Select all
lxterminal -e bash -c "cd /home/pi/project ; ./project.py; read -p 'hit return to end'"
Now I have edited:
Code: Select all
/home/pi/.config/lxsessions/LXDE-pi/autostart
Code: Select all
@lxterminal -e bash -c "cd /home/pi/project ; ./project.py; read -p 'hit return to end'"
What could be the problem?