about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-03-04 22:59:09 +0000
committerJames Booth <boothj5@gmail.com>2014-03-04 22:59:09 +0000
commitb5171cb054c9d9f4efb2ddb69c41a922b14f0aab (patch)
tree433eeae5b505256fef63436145749f6b6069ec1d /src
parent3f73a55cb0e1f25b1052bff9a0c769244dbb830e (diff)
downloadprofani-tty-b5171cb054c9d9f4efb2ddb69c41a922b14f0aab.tar.gz
Added configure checks to enable desktop notifications on OSX
Diffstat (limited to 'src')
-rw-r--r--src/ui/notifier.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/notifier.c b/src/ui/notifier.c
index 7c366434..16fd814f 100644
--- a/src/ui/notifier.c
+++ b/src/ui/notifier.c
@@ -206,6 +206,7 @@ _notify(const char * const message, int timeout,
 
     Shell_NotifyIcon(NIM_MODIFY, &nid);
 #endif
+#ifdef HAVE_OSXNOTIFY
     GString *notify_command = g_string_new("terminal-notifier -title 'Profanity' -message '");
     g_string_append(notify_command, message);
     g_string_append(notify_command, "'");
@@ -229,6 +230,7 @@ _notify(const char * const message, int timeout,
     }
 
     g_string_free(notify_command, TRUE);
+#endif
 }
 
 void