[PATCH] Support for title in notifications

Aurélien Gâteau aurelien.gateau at canonical.com
Tue Apr 14 16:09:02 BST 2009

Olivier Goffart wrote:
> Le Fredag 10 april 2009, Aurélien Gâteau a écrit :
>> Olivier Goffart wrote:
>>> Le Fredag 10 april 2009, Aurélien Gâteau a écrit :
>>>> Olivier Goffart wrote:
>>> I think you might have convinced me.
>>> But this is a behaviour change, and each application has to be updated.
>> The title defaults to the application name, so existing applications
>> should not be impacted.
> The title doesn't default to the application name, it default to 
> "Notification from <appname>"

Yes, that's what I mean.

> The problem is that now, what you want to put in the title was already in the 
> message.

True, but the application developer will adjust this when he decides to
use the title feature.

>>> I would even change the api and rename the 'text' as a 'body'
>> This would be binary incompatible, am I wrong?
> Yes, i meant deprecating the old one.


> Ok, speaking of Kopete:
> But the user needs to know which application the notification comes from.
> Example of wrong notification:
> *Joe*
> I just installed the last KDE and it works
> Let's say you can guess it is an incomming message form Joe.
> Is it an email, an instant message, irc, write, ...?
> Which application should you go to.  Of course you could click on the action 
> in the notification, but if you miss it because of a timeout or are busy and 
> want to do it later., you maybe just want to discard the notification and 
> reply later 
> Should you go to kopete, kmail, ...

I believe notifications should be as short as possible. But if you
believe it's better for Kopete to show its name in the title, you can do
something like this:

*Joe - Kopete*
I just installed the latest KDE and it works

We could even go further and standardize this a bit, just like window
titles are standardized in KMainWindow.


PS: This problem would be better addressed with a KDE version of the
message-indicator applet [1]. If you have an applet to track such
notifications, you can go back to them effortlessly, and more reliably
than having to remember which application notified you ten minutes ago.

[1]: https://wiki.ubuntu.com/MessagingMenu/

More information about the kde-core-devel mailing list