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

Raspberry Pi OS • Re: TRIXIE - Pi4 - How to auto run a python program at boot???

$
0
0
Hi Gordon,

I have not yet got it to work, this is so frustrating!

Here are my details of what I am doing...

I have a python program on my desktop 'LandCam2026.py' (Python 3)

I have the wayland labwc OS software that I verified.

I am following the information in that reference guide, section 7.1.2 as I am using a full GUI

I created the file /home/pi/.config/autostart/LandCam.desktop which has the following:
[Desktop Entry]
Type= Application
Exec= /usr/bin/python3 /home/landcam/Desktop/LandCam2026.py


I then used file manger to set the permissions to anyone can execute
-------------------------------------------------------------------------------------------------

I have tried rebooting, program did not start/run - no errors or pop ups saying there was a problem

I then ran file manager with sudo ( sudo pcmanfm) to navigate to the .desktop file.
I double clicked /home/pi/.config/autostart/LandCam.desktop and that started and ran my program

----------------------------------------------------------------------------------------------------
I have tried this path as well, and the problem persisted " Exec= /home/landcam/Desktop/python3 LandCam2026.py "


Perhaps a permission problem being that it worked by double clicking the file name (LandCam.desktop) with sudo permissions

Sure hope you can help me, this is just driving me nuts!

Thanks
Chris D




Thanks everyone,

Appreciate the help.

Chris
What method did you use ? If may help others to know :D

Statistics: Posted by Chris D — Thu Feb 05, 2026 4:13 pm



Viewing all articles
Browse latest Browse all 3546

Trending Articles