I have a Ubuntu 14.04 system that just runs Firefox all day. Now I want to restart Firefox automatically once a day, so I created the following shell script:
#!/bin/sh killall firefox sleep 5 killall -9 firefox sleep 2 /usr/bin/firefox -URL <...>
and set up da cronjob to call the script. But it doesn't work, I get:
Error: no display specified
When I insert
No protocol specified No protocol specified Error: cannot open display: :0
What's the correct way to do it?