Registry / messaging / godbus-dbus

godbus-dbus

JSON →
library4.1.0+incompatiblegogounverified

Package dbus implements bindings to the D-Bus message bus system.

go get github.com/godbus/dbus
INSTALL
IMPORT
SIG · GODBUS-DBUS
G
godbus-dbus
messaginggov4.1.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dbus
github.com/godbus/dbus/v5

Connects to session bus and retrieves the bus ID.

package main import ( "fmt" "os" "github.com/godbus/dbus/v5" ) func main() { conn, err := dbus.ConnectSessionBus() if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } defer conn.Close() var s string err = conn.BusObject().Call("org.freedesktop.DBus.GetId", 0).Store(&s) if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } fmt.Println(s) }
Debug
Known issues
breakingVersion 4 uses import path github.com/godbus/dbus; v5 uses github.com/godbus/dbus/v5.
fix
Use import path github.com/godbus/dbus/v5 for v5.
affects: >=5.0.0
Upgrade
Version history
4.1.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
godbus-dbus — go get godbus-dbus · libregistry