lua-dbus icon indicating copy to clipboard operation
lua-dbus copied to clipboard

dbus.call or dbus.propery.get inside awesome

Open vercapi opened this issue 10 years ago • 0 comments

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 can see "call is success" but I never see "callback is success".

When I execute this code in vanilla lua (and the code from the reamde) it works as expected.

Can you help me out here? Are there some special things that need to be setup for awesome to work? Thanks.

Btw: dbus.on does work fine...

vercapi avatar Sep 20 '15 20:09 vercapi