<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
John (J5) Palmieri wrote:
<blockquote
 cite="mid1138722898.12122.72.camel@remedyz.boston.redhat.com"
 type="cite">
  <pre wrap="">On Tue, 2006-01-31 at 12:11 -0500, Tim Lauridsen wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi.

I have tried to make libnotify / notification-daemon work from python.

I have made this sample, it is works ok, when running as a normal user, 
but it dont work when running as root.

<a class="moz-txt-link-freetext" href="http://linux.rasmil.dk/dnl/test/test-dbus.py">http://linux.rasmil.dk/dnl/test/test-dbus.py</a>

It is the same when i am using the
   notify-send "foo" "bar"
it works as normal user, but not as root.

Anybody have any clues ???
    </pre>
  </blockquote>
  <pre wrap=""><!---->
When you say it doesn't work for root do you mean you are logged in as
the user and you try to send from root? </pre>
</blockquote>
That is exactly, what i am trying to do, i want to send notifications
to the user from  yumex (which is running as root).<br>
<blockquote
 cite="mid1138722898.12122.72.camel@remedyz.boston.redhat.com"
 type="cite">
  <pre wrap=""> In that case it is expected not
to work.  Every user has a session bus which is what libnotify uses.
Only applications running in that session can access that bus.  If you
want root to send notifications you will have to relay the message
through a proxy which listens on the system bus and then sends the
message over the users session bus.  Nothing like that has been built
yet.

  </pre>
</blockquote>
Ok, i see, thanks for make it clear for me.<br>
<br>
Tim<br>
<br>
</body>
</html>