mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 20:26:21 +00:00
Log message when cannot send desktop nofication
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user