I am running Debian and wish to make use of notify-send
. But notify-send
doesn't give me any notification unless I have one of the following running:
# either:
/usr/lib/notification-daemon/notification-daemon
# or:
/usr/lib/notify-osd/notify-osd
I'd like to run one of these as a service, rather than letting them be jobs in my shell. However, when I create a startup script for them in /etc/init.d (using skeleton as a template), trying to start the service results in the following output, and notify-send
displays no notifications:
(notification-daemon:14467): Gtk-WARNING **: cannot open display:
/etc/init.d/skeleton
is not the way. – JdeBP Nov 10 '18 at 04:41