Skip to content

Commit

Permalink
Fix name check.
Browse files Browse the repository at this point in the history
A random process named `conky11` won't stop Conky to start when
`-U` is provided.
  • Loading branch information
g0mb4 committed Oct 3, 2024
1 parent 50fd9dc commit 03df49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
}
Expand Down

0 comments on commit 03df49f

Please sign in to comment.