On 01/01/2013 09:53 PM, Shuuichi Nitori wrote:
>>
>> sys = wibox.widget.textbox()
>>
>>     sysicon = wibox.widget.imagebox()
>>     sysicon:set_image(beautiful.widget_sys)
>>     sysicon:set_resize(true)
>>     vicious.register(sys, vicious.widgets.os, "$1 $2")
>>
>>
> attempt to index global 'vicious' (a nil value)
> it's something about this line right?
> 
>  vicious.register(sys, vicious.widgets.os, "$1 $2")
> 

The way to import modules has changed in Lua 5.2.
You need to change
        require("vicious")
to
        vicious = require("vicious")

at the top of your rc.lua.

See also
http://awesome.naquadah.org/wiki/Awesome_3.4_to_3.5#Lua_5.2_Compatibility

-- 
To unsubscribe, send mail to [email protected].

Reply via email to