I want totem to be paused automatically every night so it doesn’t keep playing the whole night.
What I had in my crontab was:
40 20 * * * /usr/bin/totem –pause
However, totem wouldn’t pause and MAILTO was sending me this error:
Cannot open display: Run '/usr/bin/totem --help' to see a full list of available command line options.
After a lot of searching, I found a post at Ubuntuforums.org that solved the problem by providing the display:
40 20 * * * env DISPLAY=:0 /usr/bin/totem –pause