~raphi/someblocks

7209894fbf63ca92a952218fb43b12784ca73fde — Raphael Robatsch 1 year, 11 months ago 4f9a0aa + d072368 personal
Merge branch 'master' into personal
1 files changed, 8 insertions(+), 2 deletions(-)

M someblocks.c
M someblocks.c => someblocks.c +8 -2
@@ 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]);
	}
	strcpy(somebarPath, getenv("XDG_RUNTIME_DIR"));
	strcat(somebarPath, "/somebar-0");

	if (!strlen(somebarPath)) {
		strcpy(somebarPath, getenv("XDG_RUNTIME_DIR"));
		strcat(somebarPath, "/somebar-0");
	}

	delimLen = MIN(delimLen, strlen(delim));
	delim[delimLen++] = '\0';
	signal(SIGTERM, termhandler);