commit 275de8e566d3d3a015fe2bea84d1e39fb32dc145 from: Caleb Stein date: Thu May 14 19:26:09 2026 UTC redirect weatherbar script stderr to stdout for logging commit - 2ed5bc67fecffe036fa885fc710c1781514e7391 commit + 275de8e566d3d3a015fe2bea84d1e39fb32dc145 blob - 79ed4eb381c97f07cb9e77ed8c6882740d9ea545 blob + 93d836102368fb0488ed49927ccbdc6b42f915e5 --- modules/weather.c +++ modules/weather.c @@ -24,7 +24,7 @@ void get_weather(int fd) { pid_t pid = fork(); - char *argv[] = { "weatherbar", weather_location, NULL }; + char *argv[] = { "/usr/local/bin/weatherbar", weather_location, NULL }; if (pid != 0) { @@ -32,6 +32,7 @@ get_weather(int fd) return; } + (void)dup2(STDOUT_FILENO, STDERR_FILENO); (void)dup2(fd, STDOUT_FILENO); if (execv("/usr/local/bin/weatherbar", argv) < 0) {