[Unit] Description=Start Python GUI on boot After=graphical.target [Service] Environment=DISPLAY=:0 ExecStart=/bin/python ./main.py WorkingDirectory=/home/pi/git/rpi-interface-board/rpi-scripts/gui User=pi Group=pi Restart=always [Install] WantedBy=graphical.target