This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Desktop notifications via network

Tags: None
(comma "," separated)
Monster_Inc
Registered Member
Posts
4
Karma
0

Desktop notifications via network

Tue Jan 12, 2016 7:54 pm
Hi there,

is there a way to receive notifications via network (like Growl on OS X or snarl on Windows)?

Background:
My router runs linux, handles telephone, too, and sends notifications to specified devices to show a who-is-calling-notification. This works with OS X, OpenELEC/Kodi, and Windows, but I didn't find a way to send a notification to my KDE system.
luebking
Karma
0
You're looking for some sort of daemon that listen on a tcp or udp port and forwards the input to the freedesktop notification protocol. Such should not be very hard to achieve (binding netcat to qdbus might do), but one would require to know the protocol your router/modem speaks (ie. what data is sent to which -very likely- UDP port)
Monster_Inc
Registered Member
Posts
4
Karma
0

Re: Desktop notifications via network

Fri Jan 15, 2016 11:51 pm
My router executes a custom shell script. So I can do whatever I want. I've already implemented several notification protocols on the "server" side. Kodi's JSONRPC, Growl's GNTP, Snarl's SNP. I wonder if there's already a daemon for KDE, that I can send network-notification-commands to.
luebking
Karma
0

Re: Desktop notifications via network

Sun Jan 17, 2016 10:50 am
KDE implements the freedesktop notification dameon, http://www.galago-project.org/specs/notification/0.9/
That's a local thing and does not listen to tcp/udp sockets.

As mentioned, you could use netcat to wire UDP broadcasts to eg. "kdialog --passivepopup" (the notification spec unfortunately includes a useless variant map, what makes using qdbus tricky)

The good part is that this should work with about every major desktop environment.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar