[ubuntu-uk] Sending Gnome popup notifications over a network...
Kris Douglas
webbox.uk at gmail.com
Thu Jan 10 17:09:41 GMT 2008
On 09/01/2008, Chris Smith <ubuntu.com at chris.cs278.org> wrote:
>
> 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
> > :0?
> >
> 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.
>
> Chris
>
> --
> ubuntu-uk at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
> https://wiki.kubuntu.org/UKTeam/
>
Hi, I got the following:
media at media-centre-1:~$ DISPLAY=:0; XAUTHORITY=~owner_of:0/.Xauthority;
export DISPLAY XAUTHORITY
media at media-centre-1:~$ notify-send "title message" "Message body
text" libnotify-Message: Unable to get session bus: dbus-launch
failed to autolaunch D-Bus session: Xlib: connection to ":0.0" refused by
server
Xlib: No protocol specified
Autolaunch error: X11 initialization failed.
--
Kris Douglas
Softdel Limited Hosting Services
Web: www.softdel.net
Mail: kris at softdel.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20080110/db0e5ed9/attachment.htm
More information about the ubuntu-uk
mailing list