How to Autorun/Autostart Your Python Script in the Raspberry Pi OS

preview_player
Показать описание
In this video I'll show a simple and effective method to autorun or autostart your python script. We will create a .desktop file in the home/pi/.config/autostart folder, with the following minimum lines:

[Desktop Entry]

Make sure to change the path in the Exec line to the location for your own python script.

Good luck! If you found this information helpful, please like the video and subscribe to the channel for more valuable content:)

Follow me on Twitter: @BaldGuyDIY
Рекомендации по теме
Комментарии
Автор

Phew, I tried like 5 different youtube vids before I found this one that actually works. Thanks!

jasonbills
Автор

FINALLY a working method ! I've tried all the other "easy" ways but none did work as well as this one. From a balding guy to another, thanks man!!

JohnDoe-vsfm
Автор

Literally a life saver. Thanks for showing the hidden files thing was going crazy trying to find .config

lpxharry
Автор

OHH MY GOD

I was looking for 3 days to an autostart solution.
YOU ARE MY HERO RIGHT NOW!!!

SuperSamaku
Автор

Omg spent so much time trying to make this work!

You’re a life saver dude

jayaramkasi
Автор

This made my life so much easier than I thought it would be to get this to work! You the man now dawg!

Wyatt-Barton
Автор

Thank you so so much, so many other videos don't make it clear that their methods don't work for desktop apps! This is exactly what I needed!

Alarm
Автор

Thank you so much for this tutorial, I never thought it would be this easy to do.

jayantbarthwal
Автор

Thank you so much for that, I have been trying loads of stuff for ages, and yours finally works.

cliveandrew
Автор

life saver! spent far to long working on this. worked first time. thank you.

marksockett
Автор

Honestly dude. Thank you so much for this. I'm currently working on a project that requires servos to boot up automatically and VLC playlist to start at the same moment. This has been a huge help. Subbed

damianhockey
Автор

It works! So very many other answers in this category did not. Thank you!

petervishton
Автор

I dont think you realize how much this helped me, stopped me from spending another 2 Hours smashing my head into a wall, tysm <3

dylanmarcuswalsh
Автор

At last, something that really works. After hours of testing different forms, this gets the job done.
Thank you very much for sharing it with us. Greetings from Portugal!

fabioESER
Автор

THANK YOU VERY MUCH! I must have been searching for exactly this answer since forever and three days.

Penzen
Автор

Absolute lifesaver 😅 i have tried all those methods in your list. Thanks mate!

TheRedstonelabz
Автор

Thanks, this is the only tutorial I found working, only thing I had to add was put "sudo" before python3 in Exec line because my application needed that to run.

finbenton
Автор

Fantastic, spent hours trying to get it to work, and you made it so easy.. just subscribed

martincook
Автор

Totally wanted 4 days to find this video. Thanks man. Works with shell scripts also. ❤️

YashodSachintha
Автор

You are right, this is the only method that work for GUI.
Thanks a lot

nelsonaleon