Skip to content

Instantly share code, notes, and snippets.

@Pilooz
Created December 16, 2017 09:00
Show Gist options
  • Save Pilooz/6bb72d49cc684a3586f6b33095118c9c to your computer and use it in GitHub Desktop.
Save Pilooz/6bb72d49cc684a3586f6b33095118c9c to your computer and use it in GitHub Desktop.
Running a Python Script AFTER X GUI Starts up
-> Edit /etc/rc.local
-> put your code before "exit 0"
-> Ensure this file is executable : `sudo chmod +x /etc/rc.local`
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file
exec 1>&2 # send stdout to the same log file
/home/pi/projets/rfid-video-player/scripts/start.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment