Skip to content

fetching shutdown time in golang #447

Open
@anarcat

Description

I'm sorry if this sounds like a "draw the rest of the owl" question, but I'm kind of stuck. I'm trying to fetch the ScheduledShutdown object from D-BUS through this library. I know i can get that property on the command-line with:

$ busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager ScheduledShutdown
(st) "" 18446744073709551615

but trying to find the right entry point in this package seems to beyond my comprehension. It seems the property getters in login1 are restricted to the wrong namespace, and the ones in the dbus namespace are stuck in there own namespace as well...

Is there a way to make a generic request as the above?

thanks

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions