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

Python • Re: Automatic start up of main.py

$
0
0
Few simple steps to get everything working (in my case).

To create bash file:

Code:

sudo nano /home/vlado/Project/StartMain.sh
Content of it:

Code:

cd /home/vlado/Projectsource env/bin/activatepython main.py
Start it:

Code:

vlado@raspberry:~/Project $ sudo chmod +x StartMain.shvlado@raspberry:~/Project $ ./StartMain.sh start
Modifying wayfire.ini:
Navigate to folder .config, open in terminal

Code:

sudo nano wayfire.ini
Add to the end of the file:

Code:

[autostart]startmain = /home/vlado/Project/StartMain.sh
Save it and reboot.

Regards, Vlado

Statistics: Posted by California — Sat May 25, 2024 6:02 am



Viewing all articles
Browse latest Browse all 4151

Trending Articles