My crontab is
@reboot /home/cin/new.sh
In new.sh I have
#!/bin/bash python3 new.py
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!
Advertisement
Answer
In the bash script, write export DISPLAY=":0.0
.