[PATCH] Detecting notification popup server capabilities

Olivier Goffart ogoffart at kde.org
Sun Aug 30 09:24:45 BST 2009


Le Friday 28 August 2009, Aurélien Gâteau a écrit :
> Hi,
>
> As you (may) know, KDE visual notifications (aka popup or bubbles) are
> now using FreeDesktop notification spec, this makes it possible for a
> GNOME app running on KDE to have its notifications displayed by Plasma,
> or for a KDE app running on GNOME to have its notifications displayed by
> notification-daemon (the original implementation) or notify-osd (Ubuntu
> implemention of the spec).
>
> You may also know that notify-osd is (in)famous for not supporting
> notification with actions. A side effect of this is that KDE
> applications running on a desktop which uses notify-osd now gets ugly
> dialog boxes whenever they try to show a notification with actions.
>
> The attached patches add a new static method to KNotification:
> popupServerCapabilities(). This method makes it possible for KDE
> applications to check what the notification server supports and act
> accordingly.

Because the user may configure each notification not to show any popup, or to 
do something else,  the programmer may never rely on the popup being show or 
having all the action.

So what is the use case for this?

If the developper of an application whish to show a popup that will always be 
seen, and expect always an action in return, KNotification is not the right 
thing to use, and it is better to use the visual notification dirrectly to do 
it. (But there is no such API)





More information about the kde-core-devel mailing list