Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1241

Python • Autostart python program terminal window & restart after crash

$
0
0
This forum has been super helpful on this issue. I have things working about like I want them. Time to go the next logical step.

I presently have an Autorun program to start a Python script in its own terminal automatically on reboot. This is in a file called "Script1.desktop" and it works perfectly.

[Desktop Entry]
Encoding=UTF-8
Name=AutoRun1
Exec=lxterminal --title='yGate' --working-directory=/home/KC3GMG-10/yGate/ -e python ygate.py
Icon=lxterminal
Type=Application
Categories=Utility:

The problem is that this script crashes frequently. It was recently updated, but now crashes even more. Would like to make it auto-restart after crash, again, needs to be in its own terminal. Got any hints?

Statistics: Posted by maesoph — Fri Jun 28, 2024 9:39 pm



Viewing all articles
Browse latest Browse all 1241

Trending Articles