Clone this repo:
  1. 4e46d5e Merge pull request #448 from SashaMIT/fix/system-bus-error by Georg Reinke · 36 hours ago master v5.2.4
  2. 2d04606 conn: return the system bus error on every OS by Sasha Mitchell · 3 days ago
  3. 4ad7526 Merge pull request #424 from twilly/linux-system-bus-address by Georg Reinke · 4 days ago v5.2.3
  4. 9f81f26 conn: support /run and /var/run default addresses by Tristan Willy · 4 days ago
  5. b3c0de5 Merge pull request #442 from kolyshkin/fuzz-oom by Georg Reinke · 4 days ago

dbus

dbus is a simple library that implements native Go client bindings for the D-Bus message bus system.

Features

  • Complete native implementation of the D-Bus message protocol
  • Go-like API (channels for signals / asynchronous method calls, Goroutine-safe connections)
  • Subpackages that help with the introspection / property interfaces

Usage

The complete package documentation and some simple examples are available at pkg.go.dev. Also, the _examples directory gives a short overview over the basic usage.

Projects using godbus

  • bluetooth: cross-platform Bluetooth API for Go and TinyGo.
  • fyne: a cross platform GUI in Go inspired by Material Design.
  • fynedesk: a full desktop environment for Linux/Unix using Fyne.
  • go-systemd: Go bindings to systemd.
  • notify provides desktop notifications over dbus into a library.

Please note that the API is considered unstable for now and may change without further notice.

License

The library is available under the Simplified BSD License; see LICENSE for the full text.

Nearly all of the credit for this library goes to https://github.com/guelfey.