mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-01 10:48:27 +02:00
22 lines
398 B
Go
22 lines
398 B
Go
package main
|
|
|
|
import (
|
|
"encoding/json"
|
|
"github.com/guelfey/go.dbus"
|
|
"github.com/guelfey/go.dbus/introspect"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
conn, err := dbus.SessionBus()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
node, err := introspect.Call(conn.Object("org.freedesktop.DBus", "/org/freedesktop/DBus"))
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
data, _ := json.MarshalIndent(node, "", " ")
|
|
os.Stdout.Write(data)
|
|
}
|