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:
parent
2d1a921f2d
commit
f806d03306
@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user