Skip to content

dbus.call or dbus.propery.get inside awesome #2

@vercapi

Description

@vercapi

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions