godbus / dbus

Native Go bindings for D-Bus
BSD 2-Clause "Simplified" License
959 stars 222 forks source link

Where is the documentation? #379

Closed space2pacman closed 5 months ago

space2pacman commented 5 months ago

I have a command to get hostname. How do I do this in go dbus?

busctl get-property xyz.openbmc_project.Network /xyz/openbmc_project/network/config xyz.openbmc_project.Network.SystemConfiguration HostName

space2pacman commented 5 months ago

change dbus.ConnectSessionBus() to dbus.ConnectSystemBus()