From f806d03306f094f1bc946af1d6b8f68270c6f8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3th=20J=C3=A1nos?= Date: Thu, 3 Oct 2024 12:43:17 +0200 Subject: [PATCH] Fix name check. A random process named `conky11` won't stop Conky to start when `-U` is provided. --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index bb11ea0a..d2a74e40 100644 --- a/src/main.cc +++ b/src/main.cc @@ -284,7 +284,7 @@ static bool is_conky_already_running() { } while (fgets(line, sizeof(line), fp)) { - if (!strncmp(line, "conky", 5)) { + if (!strncmp(line, "conky\n", 6)) { instances++; } }