notify-send with crontab
Under Manjaro (Arch), I had to do this: Figure out the value of DBUS_SESSION_BUS_ADDRESS:
Terminal:
echo $DBUS_SESSION_BUS_ADDRESS
result: unix:path=/run/user/1000/bus
in crontab
Terminal:
crontab -e
in crontab
Terminal:
sudo -u YOUR_USER DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus notify-send "Notification Title" "Notification body"
0 comentarios :