From 0e8a6dd961276f581402a0539a019ff481bf3df6 Mon Sep 17 00:00:00 2001 From: o9000 Date: Fri, 10 Nov 2017 13:44:04 +0100 Subject: [PATCH] Systray: warn on duplicate config option systray_name_filter (issue #652) --- src/config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index ae8e768..7511b90 100644 --- a/src/config.c +++ b/src/config.c @@ -1133,8 +1133,10 @@ void add_entry(char *key, char *value) } else if (strcmp(key, "systray_monitor") == 0) { systray_monitor = MAX(0, config_get_monitor(value)); } else if (strcmp(key, "systray_name_filter") == 0) { - if (systray_hide_name_filter) + if (systray_hide_name_filter) { + fprintf(stderr, "tint2: Error: duplicate option 'systray_name_filter'. Please use it only once. See https://gitlab.com/o9000/tint2/issues/652\n"); free(systray_hide_name_filter); + } systray_hide_name_filter = strdup(value); }