mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
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:
commit
ce270a320e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user