title: Raspberry Pi Auto Starting a program
body: <p>So I have a python game (PyGame) running on a raspberry Pi.</p>
  
  <p>I have followed the instructions found on many sites for getting the Raspberry Pi to auto login (those all work), auto run startx, but I'm stuck on getting my program to run once the GUI loads.</p>
  
  <p>Many people (here on StackOverflow and other places) point to this presentation here:</p>
  
  <p><a href="http://www.slideshare.net/SeggySegaran/raspberry-pi-autostarting-a-python-program" rel="nofollow">http://www.slideshare.net/SeggySegaran/raspberry-pi-autostarting-a-python-program</a></p>
  
  <p>I've tried both ways of doing it (putting the desktop file in autostart or putting the command in rc.local  </p>
  
  <p>I have opened up a Terminal window and copy / pasted the command to verify there are no typos and the code will run......</p>
  
  <p>sudo python /home/pi/valley.py</p>
  
  <p>and it will run.  Is there a way to see a log to find out WHY the program doesn't launch?  Is there a better way to get done what I want to get done?</p>