[rsyslog] desktop notifications from syslog
david at lang.hm
david at lang.hm
Thu Apr 30 02:59:41 CEST 2009
On Thu, 30 Apr 2009, Michael Biebl wrote:
> 2009/4/30 <david at lang.hm>:
>> On Thu, 30 Apr 2009, Michael Biebl wrote:
>>
>>> 2009/4/30 <david at lang.hm>:
>>>> On Thu, 30 Apr 2009, Michael Biebl wrote:
>>>>
>>>>>
>>>>> What I described (approximately) is the following:
>>>>> - Write a D-Bus plugin, that e.g. claims the com.rsyslog.Syslog D-Bus name.
>>>>> - A (autostarted) client (let's call it syslog-notify) in the user
>>>>> session, connects to this D-Bus service.
>>>>> - The rsyslog D-Bus output plugin will send syslog messages (as
>>>>> configured) over D-Bus
>>>>> - syslog-notify receives those messages and displays them e.g. via
>>>>> libnotify. It can also show a systray icon in such a case, which will
>>>>> enable you to present more actions, e.g. open the file in a log viewer
>>>>> etc.
>>>>> As syslog-notify will run in the users desktop-session, there is no
>>>>> need to fiddle around with X settings. It will just work.
>>>>>
>>>>> Hope the clears it up a little.
>>>>
>>>> try to send it to the existing notification daemon rather than creating
>>>> another one please.
>>>>
>>>
>>> Where do you read that I proposed to create a new notification daemon?
>>> Seems you misunderstood or I explained badly.
>>
>> when you refer to syslog-notify it sounds like that is a new tool that
>> needs to be created/loaded.
>
> Yeah, but this would be a tiny, small notification-client running
> within the desktop session, not the notification-daemon.
>
> Please read again or take a look at other projects, which do similar.
> I'll take NetworkManager as an example:
> You have the NetworkManager system service, which generates events
> like network up or down and provides a D-Bus system bus service.
> Then you have a client, running within the desktop session, in this
> case nm-applet, which receives the events via D-Bus from
> NetworkManager, to present the notifications to the users, it uses
> libnotify, which in turn uses the notification-daemon service, that
> runs within the user session.
and I am explicitly asking to not create yet another notification daemon.
David Lang
More information about the rsyslog
mailing list