Every now and then I close the program workrave. E.g. when I am watching a movie. Then I forget restarting it.
So, I want to restart it repeatedly. Somehow cron does not work. Following gives a summary:
ubuntu bionic (18.04)
i am a normal user (not root)
$ xhost
access control enabled, only authorized clients can connect
INET:localhost
INET6:localhost
SI:localuser:USERNAME
$ echo $DISPLAY
:0
$ crontab -l
* * * * * export DISPLAY=:0 && /usr/bin/workrave
when I open a tilix terminal and type /usr/bin/workrave
, the program starts fine.
The command
* * * * * env DISPLAY=:0 /usr/bin/workrave
does not work either.
DISPLAY=:0 /usr/bin/workrave
work (as in this question)? 2) You know that* * * * *
startsworkrave
every single minute, don't you? – PerlDuck Jul 12 '18 at 19:31