commit bfd9ce4a97133b6b5cd91b966f33af60e620b687
parent f796cc6fd0e8046e1b1c8f76d24caf4daa4659e8
Author: Sweets <Sweets@users.noreply.github.com>
Date: Sun, 13 Sep 2020 23:14:50 -0700
Test PRINT_JSON
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/output.c b/output.c
@@ -47,8 +47,13 @@ void output_notification(GVariant *parameters) {
char *summary_sanitized = sanitize(summary);
char *body_sanitized = sanitize(body);
+ #ifdef PRINT_JSON
json_output(app_name_sanitized, app_icon_sanitized, replaces_id, timeout,
hints, actions, summary_sanitized, body_sanitized);
+ #else
+ default_output(app_icon_sanitized, app_icon_sanitized, replaces_id,
+ timeout, hints, actions, summary_sanitized, body_sanitized);
+ #endif
free(app_name_sanitized);
free(app_icon_sanitized);