/* Fall back to searching $PATH (or _CS_PATH in absence of $PATH). */
char *path = getenv("PATH");
- size_t pathlen;
if (path == NULL) {
/* _CS_PATH is typically something like "/bin:/usr/bin" */
- pathlen = confstr(_CS_PATH, tmp, sizeof(tmp));
+ confstr(_CS_PATH, tmp, sizeof(tmp));
sasprintf(&path, ":%s", tmp);
} else {
- pathlen = strlen(path);
path = strdup(path);
}
const char *component;
free(path);
/* Last resort: maybe it’s in /usr/bin? */
- return "/usr/bin/i3bar";
+ return "/usr/bin/i3-nagbar";
}