mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Use 'pgrep -o' instead of 'pidof -s' to get the PID of status bar
This commit is contained in:
parent
e68f434944
commit
e39062e543
@ -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