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

Python • Automatic application launch at startup

$
0
0
Hello, I recently noticed that after resetting my RPi-4, my python application no longer starts. I regularly update my operating system...
However, I can still run the application in manual mode.

Commands to set up automatic application startup:

Code:

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart...@lxterminal -e /home/vlado/Project/env/bin/python3 /home/vlado/Project/main.py
Commands for manually launching the application:

Code:

vlado@raspberry:~/Project $ source env/bin/activate (env) vlado@raspberry:~/Project $ python main.py
So, what has changed in the meantime, or what do I need to do to enable automatic application launch?

With best regards,
Vlado

Statistics: Posted by California — Thu Nov 21, 2024 7:52 am — Replies 1 — Views 37



Viewing all articles
Browse latest Browse all 4620

Trending Articles