sardemff7 / j4status

Status line generator
https://sardemff7.github.io/j4status/
GNU General Public License v3.0
47 stars 9 forks source link

Output doesn't work since commit @750482d #20

Closed jeremija closed 9 years ago

jeremija commented 9 years ago

The output stopped working completely for me ever since the @750482d commit. I tried it on Arch Linux using glib 2.44.1 and Debian Jessie with glib 2.42.1.

I believe this line is to blame.

sardemff7 commented 9 years ago

header_sent is set to TRUE if header is NULL so it should work… I tested both i3bar and flat output. Which plugins are you using and could you gdb or g_debug to check the header_sent value?

jeremija commented 9 years ago

I can see that _j4status_io_stream_put_line is called, but header_sent is set to FALSE every time. I just ran j4status from console with:

J4STATUS_PLUGINS_DIR="$PWD/.libs" ./j4status -i time -o flat

The only function which sets the header_sent is _j4status_io_stream_put_header, but it is never called.

sardemff7 commented 9 years ago

Fixed in 659c14e8d5fc11283c8073bea67f1bcfa483932d.

I just forgot to call _j4status_io_stream_put_header for stdout…

jeremija commented 9 years ago

Great, thanks!