Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua error : attempt to call field 'shared_script_property_set' (a nil value) #72

Closed
thesharad05 opened this issue Jun 29, 2024 · 1 comment

Comments

@thesharad05
Copy link

Screenshot_2
using mpv v0.38.0
on my windows 10 its perfectly working fine !
But on archlinux-2024.06.01-x86_64 it's not . mpv behaves like osc=no and modernx UI is not visible.
I guess it is based on syntax changes in new lua version (arch using Lua 5.4.7 ) as arch contains latest version of packages (guessing).

Anyway here's some post i found (from arch linux forums) that you may find helpful as i don't know a single thing about lua.

I'm running awesome 3.5 on Arch(obviously), and I'm attempting to set background colors for some of my widgets, but I think I might be using the wrong syntax(i.e. awesome 3 instead of 3.5). Here's what I have in my rc.lua:

memwidget = wibox.widget.textbox()
vicious.register(memwidget, vicious.widgets.mem, "$1%", 13)
memwidget:set_bg("#ccccc7")

When I save and restart awesome I get the error:
rc.lua:170: attempt to call field 'set_bg' (a nil value)
Here's what got it to work:

memwidget_text = wibox.widget.textbox()
memwidget = wibox.widget.background()
memwidget:set_widget(memwidget_text)
vicious.register(memwidget_text, vicious.widgets.mem, "$1%", 13)
memwidget:set_bg("#ccccc7")

I think people with this issue is minority and modernx.lua would be working for most of the people using old lua version like windows and stable distros like Ubuntu, Debian for now .

@thesharad05
Copy link
Author

my mistake, i was using the old version of modernx.lua .
this
#65 (comment)
fixed the issue !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant