15.03.2017 - I am doing this to make a fancy picture slideshow for someone who knows nothing of computers. after this your code will work fine. to execute commands "at boot", if autologin is enabled (since what it really does it i'd suggest editing the autostart file wich is in the ~/.config/lxsession/LXDE-pi/ directory..