> On 19 Jul 2023, at 14:18, Joe Feely via users <users@lists.fedoraproject.org> 
> wrote:
> 
> 
> I have a few little scripts that crontab runs. Well it runs the espeak 
> commands but no sign of it running the zenity bits
> 
> In crontab:-
> 0 * * * * ./Joe-drink-water-reminder
> 
> File Joe-drink-water-reminder contains:-
> espeak -a15 -p25 -s160 "Hey, get Joe a drink of water"
> zenity --info --title "Joe and water drinking" --width=850 --height=250 
> --text "<span foreground='blue' font='72'>drink</span>"
> 
> This works in a terminal with ./Joe-drink-water-reminder (including doing the 
> zenity command), BUT not when cron initiates it (it only does the espeak bit).
> 
> This worked fine in f37 and earlier, just not f38.
> Any pointers (I've "googled" it with no success)

In cron the process does not have the DISPLAY or DISPLAY_WAYLAND env var set so 
you cannot open a gui window I expect?

I an a little surprised that sound worked from cron.

Barry

> 
> Thanks,
> Joe 
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to