]> git.sur5r.net Git - i3/i3/commitdiff
i3bar: Print error message when status_command fails
authorTony Crisci <tony@dubstepdish.com>
Sun, 15 Dec 2013 09:21:18 +0000 (04:21 -0500)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 21 Dec 2013 07:57:21 +0000 (08:57 +0100)
Add a function to i3bar to print an error message in the status line
when the child process invoked by status_command fails to provide
input that can be displayed as a statusline.

When the child provides JSON that cannot be parsed, alert the user and
convey a short message provided by yajl communicating the specific
problem.

When the child (or the shell executing the status command) exits
unexpectedly, alert the user and display the exit code. The cases where
the status command is not executable or not found in the user's PATH are
treated specially.

fixes #1130


No differences found