I wrestled with the problem this morning, and here is the script I came up with for notify-send on Debian 5 LTSP:
""" #!/bin/bash n=$(($#-2)) for user in `users |xargs -n 1 echo|uniq`; do pid=`pgrep -u $user metacity` DISPLAY=`grep -z DISPLAY /proc/$pid/environ| sed -e 's/DISPLAY=//'` DBUS_SESSION_BUS_ADDRESS=`grep -z DBUS_SESSION_BUS_ADDRESS \ /proc/$pid/environ | sed -e 's/DBUS_SESSION_BUS_ADDRESS=//'` export DISPLAY XAUTHORITY=/home/$user/.Xauthority export XAUTHORITY export DBUS_SESSION_BUS_ADDRESS sudo -u $user notify-send ${@:1:$n} "${@:(-2):1}" "${@:(-1):1}" done """ Hope this is of use to other people! -- Charles Paul Network Administrator... I think ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net