May 29, 2024, 19:59
cd /home/pi/Documents python3 main.pythe program start when the RPI boot but without his pygame interface. When i launch a terminal, the porgram start WITH his pygame interface. (And of course, if i execute the program manually everything is ok) Thanks for helping me !
sudo nano /lib/systemd/system/MyService.service
[Unit] Description=HighTech Service After=network.target [Service] User=pi ExecStart=PATH_TO_YOUR_.SH_SCRIPT #(/bin/bash /home/pi/START_SCRIPT.sh) [Install] WantedBy=multi-user.target
sudo systemctl enable MyService.service
sudo systemctl restart Myservice.serviceit will execute the new script