about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-03-04 20:16:47 +0000
committerJames Booth <boothj5@gmail.com>2014-03-04 20:16:47 +0000
commit3f73a55cb0e1f25b1052bff9a0c769244dbb830e (patch)
tree804e4c4ad4a207691418d75af862b17fe87722fc /src
parent8cfbb72337f76934002b8606fa715719cfe4d80c (diff)
downloadprofani-tty-3f73a55cb0e1f25b1052bff9a0c769244dbb830e.tar.gz
Log message when cannot send desktop nofication
Diffstat (limited to 'src')
-rw-r--r--src/ui/notifier.c6
1 files changed, 5 insertions, 1 deletions
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);
 }