i3 - improved tiling WM


i3bar: Amend status line error 127 message

Patch status: merged

Patch by Tony Crisci

Long description:

Exit 127 can be returned by the shell when the command is not found or
when the `status_command` process returns 127 because of a missing C
library dependency.

To apply this patch, use:
curl http://cr.i3wm.org/patch/371/raw.patch | git am

b/i3bar/src/child.c

16
@@ -420,7 +420,7 @@ void child_sig_cb(struct ev_loop *loop, ev_child *watcher, int revents) {
17
     if (exit_status == 126)
18
         set_statusline_error("status_command is not executable (exit %d)", exit_status);
19
     else if (exit_status == 127)
20
-        set_statusline_error("status_command not found (exit %d)", exit_status);
21
+        set_statusline_error("status_command not found or is missing a library dependency (exit %d)", exit_status);
22
     else
23
         set_statusline_error("status_command process exited unexpectedly (exit %d)", exit_status);
24