Use sxmo_statusbarupdate.sh script instead of direct calls duplicated logic
This commit is contained in:
parent
10705f08cd
commit
d713b19199
7 changed files with 8 additions and 14 deletions
|
@ -257,13 +257,7 @@ syncstate()
|
|||
void
|
||||
updatestatusbar()
|
||||
{
|
||||
pid_t statusbarpid = -1;
|
||||
char buffer[999];
|
||||
// TODO: there's probably a better way..
|
||||
if (fgets(buffer, 999, popen("pgrep -f sxmo_statusbar.sh", "r")) != NULL)
|
||||
statusbarpid = (pid_t) atoi(buffer);
|
||||
if (statusbarpid != -1)
|
||||
kill(statusbarpid, SIGUSR1);
|
||||
system("sxmo_statusbarupdate.sh");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue