[Galago-devel] Passing a notification from root to user with notification-daemon

Christian Hammond chipx86 at chipx86.com
Mon Mar 13 10:01:53 EET 2006


On Fri, Mar 10, 2006 at 06:46:14PM +0100, Brian Sutherland wrote:
> Hi,
> 
> This may not be the right place for this, but here goes:
> 
> I am developing an excruciatingly small program that passes
> notifications of possible hard disk issues from smartd to the
> user. It looks like the notification-daemon might be the right thing to
> use.
> 
> But I fail to find in the documentation how to pass a notification from
> the root to the user context? Is there a "Right Way"? Could someone
> point me in the right direction? 

Unfortunately, there is no "right way." You would have to talk to the
user's session bus (or all users' session busses). That's more of a
general D-BUS issue rather than a notification issue. Now, we could
extend the notification framework to also listen on the system bus,
but that's tricky and requires a lot more thought. For the time-being,
I don't have a good answer for you, except find a way to listen to the
notifications (per-user) and then emit a notification. So, a proxy of
sorts for this specific case.

Christian
 
-- 
Christian Hammond         <>  The Galago Project
chipx86 at chipx86.com       <>  http://www.galago-project.org
   There is no limit to stupidity.  Space itself is said to be bounded
   by its own curvature, but stupidity continues beyond infinity.
       -- Gene Wolfe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/galago-devel/attachments/20060313/0d4bb138/attachment.pgp 


More information about the galago-devel mailing list