1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-16 04:02:15 +00:00

Fix name check.

A random process named `conky11` won't stop Conky to start when
`-U` is provided.
This commit is contained in:
Tóth János 2024-10-03 12:43:17 +02:00 committed by Brenden Matthews
parent 2d1a921f2d
commit f806d03306

View File

@ -284,7 +284,7 @@ static bool is_conky_already_running() {
} }
while (fgets(line, sizeof(line), fp)) { while (fgets(line, sizeof(line), fp)) {
if (!strncmp(line, "conky", 5)) { if (!strncmp(line, "conky\n", 6)) {
instances++; instances++;
} }
} }