1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05: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); 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); g_string_free(notify_command, TRUE);
} }