Run python script on startup - debian
I created an application using a webcam. here my app opens a window to display the image. I want to run this application on startup. if I put the startup file in rc.local it runs successfully on startup but does not allow the window to be displayed. He shows -
gtk warning cannot open display.
how to show the window? please help me guys!
+2
ganesh m
source
to share
1 answer
If you are using LXDE (raspbian by default)
Add a .desktop file to your ~ / .config / autostart directory (create one if not available) with three lines that says:
[Desktop Entry]
Type=Application
Exec=python /path/to/your/application.py arguments
UPDATE: updated with don's note
+2
Gertjan assies
source
to share