return true;
}
public void sendToKNotify(final String titleFormat, final String descriptionFormat, final Program program) {
try {
final ExecutionHandler executionHandler = new ExecutionHandler("dcop",
"which");
executionHandler.execute(true);
String dcopLocation = executionHandler.getOutput();
if (dcopLocation != null) {
dcopLocation = dcopLocation.trim();
if (dcopLocation.length() > 0) {
// create the notification message
if (mParser == null) {
mParser = new ParamParser();
}
final String title = mParser.analyse(titleFormat,program);
final String message = mParser.analyse(descriptionFormat, program);
// run the notification command
final String[] command = { dcopLocation, "knotify", "Notify",
"notify", "event", title, message, "", "", "16", "0" };
new ExecutionHandler(command).execute();
}
}
else {
mLog.warning("'dcop' command not found");
}