allow user to set path of the fifo
This commit is contained in:
parent
ed1e85d804
commit
d072368de0
1 changed files with 8 additions and 2 deletions
|
@ -193,9 +193,15 @@ int main(int argc, char** argv)
|
|||
strncpy(delim, argv[++i], delimLen);
|
||||
else if (!strcmp("-p",argv[i]))
|
||||
writestatus = pstdout;
|
||||
else if (!strcmp("-s",argv[i]))
|
||||
strcpy(somebarPath, argv[++i]);
|
||||
}
|
||||
|
||||
if (!strlen(somebarPath)) {
|
||||
strcpy(somebarPath, getenv("XDG_RUNTIME_DIR"));
|
||||
strcat(somebarPath, "/somebar-0");
|
||||
}
|
||||
|
||||
delimLen = MIN(delimLen, strlen(delim));
|
||||
delim[delimLen++] = '\0';
|
||||
signal(SIGTERM, termhandler);
|
||||
|
|
Reference in a new issue