From 3f73a55cb0e1f25b1052bff9a0c769244dbb830e Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 4 Mar 2014 20:16:47 +0000 Subject: [PATCH] Log message when cannot send desktop nofication --- src/ui/notifier.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/notifier.c b/src/ui/notifier.c index 8582acf2..7c366434 100644 --- a/src/ui/notifier.c +++ b/src/ui/notifier.c @@ -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); }