You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function conky_main()
if conky_window == nil then
return
end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local display = cairo_create(cs)
local updates = conky_parse('${updates}')
update_num = tonumber(updates)
if update_num > 5 then
go_clock_rings(display)
go_gauge_rings(display)
end
cairo_surface_destroy(cs)
cairo_destroy(display)
end
fails to draw the various graphs on my conky setup. I get the following error:
conky: llua_do_call: function conky_main execution failed: /home/elassus/.conky/conky_grey.lua:532: attempt to call a nil value (global 'cairo_xlib_surface_create')
Downgrading to conky stable (1.19.8) works around the problem.
I'm using conky on gentoo Linux. My settings are:
# emerge -pv conky::gentoo
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 3.19 s (backtrack: 0/20).
[ebuild R ] app-admin/conky-1.19.8::gentoo USE="X bundled-toluapp curl hddtemp iconv imlib lua-cairo lua-imlib lua-rsvg ncurses portmon rss truetype wayland -apcupsd -cmus -doc -extras -ical -intel-backlight -iostats -irc -math -moc -mpd -mysql -nvidia -pulseaudio -systemd -test -thinkpad -webserver -wifi -xinerama -xmms2" LUA_SINGLE_TARGET="lua5-4" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Do I need to update the syntax here? Or is there something else wrong?
Version
1.21.1
Which OS/distro are you seeing the problem on?
Gentoo
Conky config
No response
Stack trace
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
whoops, sorry I misunderstood what you meant. I've added require 'cairo_xlib' at the top of the .lua file right below require 'cairo' and BOOM now it works.
Thanks for sorting me out.
What happened?
On conky-1.21.1, the following function:
fails to draw the various graphs on my conky setup. I get the following error:
Downgrading to conky stable (1.19.8) works around the problem.
I'm using conky on gentoo Linux. My settings are:
Do I need to update the syntax here? Or is there something else wrong?
Version
1.21.1
Which OS/distro are you seeing the problem on?
Gentoo
Conky config
No response
Stack trace
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: