I have a raspberry pi that I only use for running two small HAM radio related programs. I want each program to start up automatically whenever power is cycled on the pi - each in their own terminal. I have successfully found a way to get one to autostart in its own terminal using the below:
File: .desktop
Name: AutoRun
Contents:
[Desktop Entry]
Encoding=UTF-8
Name=AutoRun
Exec=lxterminal -e python "/home/KC3GMG-10/yGate/ygate.py"
Icon=lxterminal
Type=Application
Categories=Utility:
This works perfectly and starts my ygate as expected in its own terminal window automatically on startup.
The problem is that I need to start up two programs like this. I have tried the obvious methods of duplicating this file and pointing to the other python scrip and also adding additional entries to this existing file. Both of these attempts have resulted in nothing running at startup. Let me know if this is possible. I have been getting around this issue by just using two separate Pi's - each running one program. Would like to use one for something else now and run both programs on one Pi. Neither python program is extensive, but they each require their own terminal to remain open or they terminate.
File: .desktop
Name: AutoRun
Contents:
[Desktop Entry]
Encoding=UTF-8
Name=AutoRun
Exec=lxterminal -e python "/home/KC3GMG-10/yGate/ygate.py"
Icon=lxterminal
Type=Application
Categories=Utility:
This works perfectly and starts my ygate as expected in its own terminal window automatically on startup.
The problem is that I need to start up two programs like this. I have tried the obvious methods of duplicating this file and pointing to the other python scrip and also adding additional entries to this existing file. Both of these attempts have resulted in nothing running at startup. Let me know if this is possible. I have been getting around this issue by just using two separate Pi's - each running one program. Would like to use one for something else now and run both programs on one Pi. Neither python program is extensive, but they each require their own terminal to remain open or they terminate.
Statistics: Posted by maesoph — Sun Mar 17, 2024 2:03 pm