From 68e447d3f6bb7767e4d95458b13ead49d76e5410 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 4 Feb 2013 21:36:55 +0100 Subject: [PATCH] Bugfix: output auto detect: properly detect ambiguous situations (Thanks mist) fixes #940 --- src/auto_detect_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auto_detect_format.c b/src/auto_detect_format.c index 46e5f95..6ec5f73 100644 --- a/src/auto_detect_format.c +++ b/src/auto_detect_format.c @@ -139,7 +139,7 @@ char *auto_detect_format(void) { else if (strcasecmp(name, "xmobar") == 0) newfmt = "xmobar"; - if (newfmt && format) { + if (newfmt && format && strcmp(newfmt, format) != 0) { fprintf(stderr, "i3status: cannot auto-configure, situation ambiguous (format \"%s\" *and* \"%s\" detected)\n", newfmt, format); format = NULL; break; -- 2.39.5