C++ (Qt)
//чезез kdialog:
QStringList arguments;
arguments << "--passivepopup" <<strMsgText;
arguments << "--title"<<strMsgTitle;
QProcess::startDetached("/usr/bin/kdialog",arguments);
//Через notify-send:
QStringList arguments;
arguments <<strMsgText;
QProcess::startDetached("/usr/bin/notify-send",arguments);