mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 09:26:21 +00:00
Added configure checks to enable desktop notifications on OSX
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user