Package: conky-std Version: 1.10.0-1 Severity: normal Hello Vincent, I've recently upgraded conky on my Debian testing boxes: [UPGRADE] conky-std:amd64 1.9.0-6 -> 1.10.0-1
I noticed that the pre_exec variable has been removed, without providing anything with an equivalent behavior. This seems to be confirmed by: https://github.com/brndnmtthws/conky/issues/62 https://github.com/brndnmtthws/conky/commit/b96f112106ea43dda5b5747bc315a2b76ba9da8f The commit description says that the pre_exec variable has been removed "because one can use lua to generate the config on the startup, if one wants to". Oh well, if one *knew* how to program in Lua, one could use Lua to generate the config on startup! I have currently no knowledge about Lua, so I am a bit lost without some example in the documentation. I failed to find any relevant explanation on how Lua could be used to emulate the behavior of pre_exec... My attempt (after converting my .conkyrc to the new Lua-based syntax) is the following: $ cat .config/conky/conky.conf -- vim: syntax=lua conky.config = { -- many settings... lua_startup_hook = 'conky_cow', -- append fortune said by a cow }; -- stuff to be formatted on screen conky.text = [[ a lot of stuff... ${color green} ]]; function conky_cow() o = io.popen('fortune -s | cowsay', 'r') conky.text = conky.text .. o:read('*a') end Unfortunately, it does not work and I do not know why. In case you happen to know how I can emulate pre_exec, please help me, and/or forward my bug report upstream. Thanks for your time! P.S.: my current workaround is to use execi with a long interval: ${color green}${execi 65000 fortune -s | cowsay} It's much simpler than any Lua-based solution, but it does not do exactly what I want... I still wonder why pre_exec has been removed: it was so simple and useful! :-( -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (800, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: sysvinit (via /sbin/init) Versions of packages conky-std depends on: ii libc6 2.19-18 ii libgcc1 1:5.1.1-12 ii libiw30 30~pre9-8 ii liblua5.1-0 5.1.5-7.1 ii libncurses5 5.9+20150516-2 ii libstdc++6 5.1.1-12 ii libtinfo5 5.9+20150516-2 ii libx11-6 2:1.6.3-1 ii libxdamage1 1:1.1.4-2+b1 ii libxext6 2:1.3.3-1 ii libxfixes3 1:5.0.1-2+b2 ii libxft2 2.3.2-1 conky-std recommends no packages. Versions of packages conky-std suggests: pn apcupsd <none> ii audacious 3.5-2 pn moc <none> pn mpd <none> pn xmms2 <none> -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

