Merge pull request #190 from UtkarshVerma/dwmblocks

Use 'pgrep -o' instead of 'pidof -s' to get the PID of status bar
This commit is contained in:
Stein Gunnar Bakkeby 2021-10-15 18:34:41 +02:00 committed by GitHub
commit ce270a320e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ getstatusbarpid()
return statuspid;
}
}
if (!(fp = popen("pidof -s "STATUSBAR, "r")))
if (!(fp = popen("pgrep -o "STATUSBAR, "r")))
return -1;
fgets(buf, sizeof(buf), fp);
pclose(fp);