Plasma as a knotify backend bug?

Ivo Anjo knuckles at gmail.com
Mon May 10 22:48:51 CEST 2010


Hi.

I was testing the freespacenotifier kded daemon that is now on
kdebase/workspace, and found a possible issue when using plasma as a knotify
backend.
The code in question does:

           notification = new KNotification( "freespacenotif", 0,
KNotification::Persistent );

           notification->setText( i18nc( "Warns the user that the system is
running low on space on his home folder, indicating the percentage
and absolute MiB size remaining, and asks if the user wants to do something
about it", "You are running low on disk space on your home
folder (currently %2%, %1 MiB free).\nWould you like to run a file manager
to free some disk space?", avail, availpct ) );
           notification->setActions( QStringList() << i18nc( "Opens a file
manager like dolphin", "Open File Manager" ) << i18nc( "Closes the
notification", "Do Nothing" ) << i18nc( "Allows the user to configure the
warning notification being shown", "Configure Warning" ) );

and is at kdebase/workspace/freespacenotifier.cpp.

When rendered using plain old knotify, the resulting popup is
[image: freespacenotifier-knotify.png]

while plasma renders it as
[image: freespacenotifier-plasma.png]

Notice that plasma does not render anything after the \n -- the "Would you
like to run a file manager to free some disk space?" part.

My question is: is this a plasma bug? Should I not use \n? Or should I just
reword this so the text gets smaller?

Thanks,
Ivo Anjo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100510/99548669/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 10122 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100510/99548669/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 30744 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100510/99548669/attachment-0003.png 


More information about the Plasma-devel mailing list