Comment 4 for bug 337389

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I've added this to the spec <https://wiki.ubuntu.com/NotifyOSD?action=diff&rev2=72&rev1=71>, but I don't think it's a good idea. Even if a client wants to cater for poorly-presented servers by handling truncation itself, *how much* it needs to truncate is dependent on the particular notification server. For example, a notification server designed specifically for mobile phones would have notifications much smaller than those displayed by notification-daemon, so they would need to be truncated much more.

Therefore, I think clients that want to bother handling truncation themselves (such as pidgin-libnotify) should use GetServerInformation to target specific servers (e.g. "if notification-daemon, truncate to X characters"), rather than assuming they'll all be the same size.