* Jan Engelhardt
On Wednesday 2014-10-08 12:18, Guido Berhoerster wrote:
Hm, I am using notify-send (not for SMART, but something else), might be the more portable solution?
I don't think so, notify-send requires access to each user's session DBus instance and you have to resort to some pretty gross and fragile hack to do that. In addition you don't reach users which are just logged in on a console.
Shouldn't user sessions (ideally) also listen to the system bus to receive exactly this kind of user-unspecific system events?
Sure, bute then you need just another daemon which subscribes to certain DBus signals by an emitter on the system bus and in turn invokes a method on the users notification daemon via the session bus. That's how gnome-disk-utility works. Basically udisks2 regularly polls SMART data and emits a signal via the system bus to which gnome-disk-utility instances running in the users sessions are subscribed and in turn create notifications over the session bus. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org