2024-01-23 23:28:50 E: awesome: Error during a protected call: /usr/share/lua/5.4/lgi/override/GLib-Variant.lua:141: GLib.Variant: no 'n'
stack traceback:
[C]: in function 'error'
/usr/share/lua/5.4/lgi/component.lua:160: in function </usr/share/lua/5.4/lgi/component.lua:156>
[C]: in metamethod 'index'
/usr/share/lua/5.4/lgi/override/GLib-Variant.lua:141: in upvalue 'variant_new'
/usr/share/lua/5.4/lgi/override/GLib-Variant.lua:159: in upvalue 'variant_new'
/usr/share/lua/5.4/lgi/override/GLib-Variant.lua:176: in function </usr/share/lua/5.4/lgi/override/GLib-Variant.lua:170>
(...tail calls...)
/home/delta/.config/awesome/curious.lua:87: in function </home/delta/.config/awesome/curious.lua:81>
[C]: in function 'xpcall'
/usr/share/awesome/lib/gears/protected_call.lua:41: in function </usr/share/awesome/lib/gears/protected_call.lua:40>
(...tail calls...)
/home/delta/.config/awesome/curious.lua:92: in upvalue 'target'
/usr/share/lua/5.4/lgi/override/GObject-Closure.lua:286: in function </usr/share/lua/5.4/lgi/override/GObject-Closure.lua:283>
I get the following error:
When using this piece of code:
(Sidenote: It seems that even if it didn't fail, it would be inefficient as for some reason the
variant_new
function doesn't make the distinction between a lua table and aVariant
)