1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Log message when cannot send desktop nofication

This commit is contained in:
James Booth 2014-03-04 20:16:47 +00:00
parent 8cfbb72337
commit 3f73a55cb0

View File

@ -223,7 +223,11 @@ _notify(const char * const message, int timeout,
g_string_append(notify_command, app_id);
}
system(notify_command->str);
int res = system(notify_command->str);
if (res == -1) {
log_error("Could not send desktop notificaion.");
}
g_string_free(notify_command, TRUE);
}