Crontab GUI application not working

Tag: user-interface , cron , ubuntu-12.04 , crontab Author: c199005072114 Date: 2013-04-28

I created a file and placed it in /etc/cron.d. Below is what my file contained.

*/1 * * * * root env DISPLAY=:0 notify-send "hello"
*/1 * * * * root echo "hello" >> /home/ashwin/log

The second task gets executed but the first task doesn't. But if I put the same task in crontab -e (user crontab) it works fine. Any help on why first command is not working in /etc/cron.d ??