Possible Duplicate:
Can I launch a graphical program on another user's desktop as root?
I wrote a script which starts from init.d .When it finishes I need it to notify-send a message to me (I am running GNOME). I tried
export DISPLAY=:0.0
but it doesn't work.
Is there any way to do this?
notify-send
uses DBus, so you'll probably need to set theDBUS_SESSION_BUS_ADDRESS
environment variable as well. – jw013 Dec 29 '11 at 02:53