I am running Pi OS latest release and update freshly installed from scratch last week, so december 2023 with all the usual updates and upgrades also done last sunday.
I have read the sticky notes about the autostart topic and chose autostart to launch a terminal and then to start python with a script
and then I added this line to the default autostart
It looks like it is starting, but closing the terminal window instantly cause in case that I open a new terminal and start the script it stops with an error like already in use or running which means autostart had been run successfully but closed the terminal even though a lot of messages are coming in every few seconds.
And if I remove this line above from the autostart and reboot then i can open a terminal windows and start the script manually without any error.
But how can I open the terminal by autostart and keep it open cause it shows the data coming in and being ignored or processed ?
Right now I have to start it manually which is the worst solution of all cause if it crashes like sunday then I get not behind the issue instantly.
Any suggestions ?
Thanks a lot !
I have read the sticky notes about the autostart topic and chose autostart to launch a terminal and then to start python with a script
Code:
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Code:
@lxterminal --geometry=120x40 -e sudo python3 /home/pi/Desktop/grott/grott.py
And if I remove this line above from the autostart and reboot then i can open a terminal windows and start the script manually without any error.
But how can I open the terminal by autostart and keep it open cause it shows the data coming in and being ignored or processed ?
Right now I have to start it manually which is the worst solution of all cause if it crashes like sunday then I get not behind the issue instantly.
Any suggestions ?
Thanks a lot !
Statistics: Posted by typxxi — Tue Mar 19, 2024 12:53 am