It appears in the KDE 4 in the system tray. I wasn't sure if it was KDE specific.
I found it in the update-notifier-kde (which comes from the source kingston-update notifier (?)).
Code:
find . | xargs grep -i "There is .* updates"
./src/notifier.cpp: show_update_notification( "It is recommended to update your system", QString("There is %1 updates available").arg(updates), "dialog-information");
./src/notifier.cpp: show_update_notification( "You should update your system", QString("There is %1 security updates available").arg(security_updates), "dialog-warning");
./src/notifier.cpp: show_update_notification( "You should update your system", QString("There is %1 updates and %2 security updates available").arg(updates).arg(security_updates), "dialog-warning" );
Any recommendations on how to modify this to differentiate between 1 and more than 1?
Something like:
Code:
void notifier_t::notify_new_updates(int updates, int security_updates) {
if(updates==0 && security_updates==0) {
//do nothing, I guess
} else {
QPixmap px;
if(security_updates==0) {
if(updates==1) {
show_update_notification( "It is recommended to update your system", QString("There is %1 update available").arg(updates), "dialog-information");
} else {
show_update_notification( "It is recommended to update your system", QString("There are %1 updates available").arg(updates), "dialog-information");
}
} else {
if(updates==0) {
if security_updates==1) {
show_update_notification( "You should update your system", QString("There is %1 security update available").arg(security_updates), "dialog-warning");
} else { show_update_notification( "You should update your system", QString("There are %1 security updates available").arg(security_updates), "dialog-warning");
}
} else {
show_update_notification( "You should update your system", QString("There is %1 updates and %2 security updates available").arg(updates).arg(security_updates), "dialog-warning" );
}
}
}
}
There's a bug report and a patch now:
http://bugs.debian.org/cgi-bin/bugre...ved=no&mbox=no
However, I can't find the official patch or the new and improved version of notifier.cpp.