Skip to content

Error running from cron: Can't open display #227

@sebastian-65

Description

@sebastian-65
  • I'm using cronjobs to fire all sorts of notifications and it works well.
  • Only trouble I have is getting error report into /var/mail/user - blank email with Can't open display error
  • I've tried to redirect output in crontab line to > /dev/null 2>&1, but then I won't get other relevant messages/errors
  • Once desktop_notifier gets imported, this error is generated
  • I have DISPLAY, XAUTHORITY and DBUS_SESSION_BUS_ADDRESS set

I'm wondering, is there anything that can be done to prevent that message being sent to stderr? On which level it has to be dealt with?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions