My crontab is In new.sh I have In new.py I open images with the Pillow module and play music, but when I boot it only plays the music. Any help is appreciated. EDIT: The music plays perfectly. Edit: The shell script runs it fine in terminal. ANSWERED! Answer In the bash script, write export DISPLAY=”:0.0.