Conky: journal: wrong output

Created on 18 Apr 2017  路  8Comments  路  Source: brndnmtthws/conky

this might be an escaping issue...

screenshot

conky.text = [[
${exec journalctl -n 5}
--------------------------
${journal 5}
]]

the full string that isn't properly displayed is:
Apr 18 18:29:12 zenon gedit[8959]: Allocating size to GtkOverlay 0x2836130 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

bug

All 8 comments

Please add text_buffer_size = 1000, in the conky.config section - the minimum default is 256 which may not be enough. Increase in increments of 1000 till you get the desired output and then trim the value to your satisfaction.

it's still the same with

conky.config = {
    use_xft = true,
    font = 'SourceCodePro:size=9',
    own_window = true,
    own_window_type = 'desktop',
    text_buffer_size = 1000000,
}

conky.text = [[
${journal 10}
]]
Allocating size to GtkOverlay 0x2836130 without calling gtk_widget_get_preferred_width/height().
How does the code know the size to allocate?

That output seems to be supposedly fixed. bugzilla.gnome/769566 via eb01ba so it is hard for us to reproduce this behavior without gedit.

Yes, gedit is fixed indeed.
The issue still happens though. The output is just a [ from time to time (like in the screenshot). Unfortunately I haven't found a way to reliably reproduce it.

I can reproduce it with gnome-calendar

Hi. Quick question. What version are you on right now?

Does ${journal 10 xxx} work for you? Try xxx with both user and system.

The long line goes out of conky window. Was that the problem? Are you expecting it to wrap?

app-admin/conky-1.10.8-r1 on gentoo

well, ${journal 10 system} obviously works since those are errors coming from gui apps that run as a user and therefore don't appear on system level. ${journal 10 user} shows the same issues as just ${journal 10}, which is a combination of user and system.

unfortunately I've just noticed that the issue isn't 100% reproducible with gnome-calendar. It happens most of the time though :-/

Lol. I think there is a regression because I get conky: invalid arg for journal, type must be 'system' or 'user' with ${journal 10 user}. With ${journal 10}, I don't see anything other than a date. I'm bisecting this right now.

2018-08-05-060255_300x300_scrot

EDIT: I see your [ bug. ;-)

Was this page helpful?
0 / 5 - 0 ratings