[ubuntu-uk] Sending Gnome popup notifications over a network...
ubuntu.com at chris.cs278.org
Wed Jan 9 23:13:05 GMT 2008
Kris Douglas wrote:
> Hi, thanks for the help, I tried this before, and got the message
> libnotify-Message: Unable to get session bus: dbus-launch failed to
> autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
> It appeares i would have to actually be on the X server to run it, do you
> know of a way to specify the location the message is sent to? like display
What you need to do when logged in remotely as root is:
DISPLAY=:0; XAUTHORITY=~owner_of:0/.Xauthority; export DISPLAY XAUTHORITY
You will probably need to parse the output of `who` for the display and
user name, that way you can send the message to everyone who is logged
in to X on that machine. Also checkout zenity.
More information about the ubuntu-uk