I used Gnome Schedule to create the following test task. The task runs fine manually but is not being run every hour automatically as defined.
What is required for this task to run automatically?
I used Gnome Schedule to create the following test task. The task runs fine manually but is not being run every hour automatically as defined.
What is required for this task to run automatically?
You need to specify what your default output display is.
(Sorry, the above reference is in German. I could not find anything else.)
A) In the cmd field, introduce:
either
DISPLAY=:0 /usr/bin/notify-send test
or
export DISPLAY=:0; /usr/bin/notify-send test
and report on result in a comment below if needed.
B) You may also try running your GUI cmd notify-send as an "X application". You can select that out of the unfolding menu, in the field directly below yr cmd field.
WHY it is so:
"Gnome Schedule" is based in part on crontab, but crontab doesn't know about yr general user's environment variables. To get more information on that, do (in terminal):
$ man 5 crontab
As a result you need to specify:
stdout (i.e. yr standard display) is within the cron-job itself./usr/bin/. Concretely for notify-send, it is in principle superfluous to prefix its full path. Do so anyway for all cmds as a healthy habit...HTH.