I'm trying to show a notification in a cron's line: 45 9 30 6 * export DISPLAY=:0.0 && python /home/path/script.py > /home/path/debug_cron_on.log 2>&1
My script is: import pynotify pynotify.init("Basic") n = pynotify.Notification("Title", "TEST") n.show() The log file show this: (in french) And the result: Traceback (most recent call last): File "/home/path/script.py", line 22, in <module> n.show() gio.Error: Impossible de se connecter : Connexion refusée #Translating: Unable to connect : Connection refused -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/748159 Title: notify-send crashed with SIGABRT in g_object_unref() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libnotify4/+bug/748159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs