Use 'pgrep -o' instead of 'pidof -s' to get the PID of status bar

pull/190/head
Utkarsh Verma 3 years ago
parent e68f434944
commit e39062e543
No known key found for this signature in database
GPG Key ID: 817656CF818EFCCC

@ -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…
Cancel
Save