You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanna set up a cronjob to let me know when my battery is dying.
So basically I wrote a script that plays a sound and displays a notification with herbe when the battery level is too low. It works fine when I run it from my terminal but cron fails to run herbe.
Adding export DISPLAY=:0 in the script does not make the trick.
The arch wiki also suggests to:
set up a DBUS variable which obviously won't help
Use xuserrun but it has systemd as dependency and I intend to run this on void
Is there another global variable I gotta set ? Or is herbe simply not sable in a cronjob ?
Thanks
The text was updated successfully, but these errors were encountered:
Hey! Found solution in days. Somewhat in my setup cronie's shell missed full path for herbe (with no modifications in Makefile paths), and "display not found". After fix for path this line works for me:
* * * * * env DISPLAY=:0 /usr/local/bin/herbe test
Hi,
I wanna set up a cronjob to let me know when my battery is dying.
So basically I wrote a script that plays a sound and displays a notification with herbe when the battery level is too low. It works fine when I run it from my terminal but cron fails to run herbe.
Adding
export DISPLAY=:0
in the script does not make the trick.The arch wiki also suggests to:
Is there another global variable I gotta set ? Or is herbe simply not sable in a cronjob ?
Thanks
The text was updated successfully, but these errors were encountered: