<br><br><div><span class="gmail_quote">On 09/01/2008, <b class="gmail_sendername">Chris Smith</b> &lt;<a href="mailto:ubuntu.com@chris.cs278.org">ubuntu.com@chris.cs278.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Kris Douglas wrote:<br>&gt; Hi, thanks for the help, I tried this before, and got the message<br>&gt;<br>&gt;<br>&gt; libnotify-Message: Unable to get session bus: dbus-launch failed to<br>&gt; autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
<br>&gt;<br>&gt;<br>&gt; It appeares i would have to actually be on the X server to run it, do you<br>&gt; know of a way to specify the location the message is sent to? like display<br>&gt; :0?<br>&gt;<br>What you need to do when logged in remotely as root is:
<br><br>DISPLAY=:0; XAUTHORITY=~owner_of:0/.Xauthority; export DISPLAY XAUTHORITY<br><br>You will probably need to parse the output of `who` for the display and<br>user name, that way you can send the message to everyone who is logged
<br>in to X on that machine. Also checkout zenity.<br><br>Chris<br><br>--<br><a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br><a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk">https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
</a><br><a href="https://wiki.kubuntu.org/UKTeam/">https://wiki.kubuntu.org/UKTeam/</a><br></blockquote></div><br>Hi, I got the following: <br><br><span style="font-weight: bold;">media@media-centre-1:~$ DISPLAY=:0; XAUTHORITY=~owner_of:0/.Xauthority; export DISPLAY XAUTHORITY
</span><br style="font-weight: bold;"><span style="font-weight: bold;">media@media-centre-1:~$ notify-send &quot;title message&quot; &quot;Message body text&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libnotify-Message: Unable to get session bus: dbus-launch failed to autolaunch D-Bus session: Xlib: connection to &quot;:
0.0&quot; refused by server</span><br style="font-weight: bold;"><span style="font-weight: bold;">Xlib: No protocol specified</span><br style="font-weight: bold;"><br style="font-weight: bold;"><span style="font-weight: bold;">
Autolaunch error: X11 initialization failed.</span><br><br clear="all"><br>-- <br>Kris Douglas<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Softdel Limited Hosting Services<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Web: <a href="http://www.softdel.net">www.softdel.net</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mail: 
<a href="mailto:kris@softdel.net">kris@softdel.net</a>