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

Brian Sutherland jinty at web.de
Mon Mar 13 13:30:30 EET 2006


On Sun, Mar 12, 2006 at 11:29:46PM -0800, Christian Hammond wrote:
> 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.

That's kind of what I have right now, I run a per-user-session-daemon
that listens to the system bus. But I agree it is tricky and would love
to move to a solution where the trickiness is handled for me.

> 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.

This sets off my in-built complexity meter;)

Thanks for the reply, even a negative result is useful sometimes...

-- 
Brian Sutherland

Metropolis - "it's the first movie with a robot. And she's a woman.
              And she's EVIL!!"



More information about the galago-devel mailing list