diff --git a/patch/bar_dwmblocks.c b/patch/bar_dwmblocks.c index 25268c5..fe7880b 100644 --- a/patch/bar_dwmblocks.c +++ b/patch/bar_dwmblocks.c @@ -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);