Thank you! It does works now. I though that $DISPLAY would be defaultly set to :0.0. Well, obviously I had been wrong :-(.
After adding "DISPLAY=:0.0" to the procmailrc file, it works. Thank you again^^ On Thu, Jul 22, 2010 at 11:03:10PM -0700, Gary Johnson wrote: >I'm not familiar with notify-send, but I imagine that it's an X >application and needs to know the identity of the display on which >to display itself. The process that runs procmail is not associated >with any display, so notify-send doesn't know what display to use. > >You might try executing > > echo $DISPLAY > >at the shell prompt of some X terminal, then setting DISPLAY to that >value in the command that invokes notify-send, something like this. > > # notification > :0 ic: > | play /usr/share/sounds/gnome/default/alerts/drip.ogg; DISPLAY=:0.0 > notify-send -i 'evolution' "New Mail Arrives" > >Unfortunately I don't have a way to test that at the moment. > >HTH, >Gary -- He Wen School of Electrical Engineering & Computer Science Peking University Beijing 100871 China
