lua-dbus
lua-dbus copied to clipboard
convenient dbus api in lua
**Problem**: bus connections don’t close after Lua object that represents the connection is destroyed. **Solution**: add an option to initialize private bus connections. A private connection is destroyed along with...
**Problem**: the library doesn’t work on Lua 5.4 due to moving of global unpack function to the table module.
**Problem**: API lacks of a signal sending method.
Currently, it is not straight obvious that the code is MIT licensed. It would be nice to add LICENSE file like https://github.com/daurnimator/ldbus/blob/master/LICENSE to eliminate that.
The current code, at least for ldbus, seems to derive the actual type of a variant at runtime. This however means certain types, in particular numerical types, cannot be expressed....
This fixes some issues/bugs. *Reading/Writing complex DBUS messages (e.g. a{sa{sv}}) *Allows specifying the argument type for "variant" arguments. See individual commits for further reference.
This patch fixes cases where the 'opts' table passed by the user is modified, making the external table unable to be reused in some cases. This was causing problems e.g....
Following code doesn't work inside awesome. ``` local batter_opts = {bus = 'system', path='/org/freedesktop/UPower', interface="/org/freedesktop/UPower/devices/battery_BAT1", destination='org.freedesktop.UPower'} dbus.property.get("OnBattery", function(...) print("callback is success") end, batter_opts) print("call is success") ``` On stdout I...