On 23 April 2012 14:24, Uli Schlachter <[email protected]> wrote: > On 23.04.2012 14:16, Julien Danjou wrote: >> >> Unfortunately, I don't see any function that can be called from withing >> awesome to retrieve Lua version awesome is running with. :(
run this in your lua prompt: naughty.notify{text=_VERSION}
>
> lua_getglobal(L, "_VERSION")
>
> No clue if lua_open() sets this, but the reference manual lists it as a
> variable that is always set.
luaopen_base(L) does it.
any improvements/critics for the new patch? :)
0001-common-version.c-show-lua-release-version.patch
Description: Binary data
