Update dependencies to include github.com/godbus/dbus
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
3a9e7036a1
commit
69ed8639cd
73 changed files with 7291 additions and 31 deletions
17
vendor/github.com/godbus/dbus/_examples/notification.go
generated
vendored
Normal file
17
vendor/github.com/godbus/dbus/_examples/notification.go
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
package main
|
||||
|
||||
import "github.com/godbus/dbus"
|
||||
|
||||
func main() {
|
||||
conn, err := dbus.SessionBus()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
obj := conn.Object("org.freedesktop.Notifications", "/org/freedesktop/Notifications")
|
||||
call := obj.Call("org.freedesktop.Notifications.Notify", 0, "", uint32(0),
|
||||
"", "Test", "This is a test of the DBus bindings for go.", []string{},
|
||||
map[string]dbus.Variant{}, int32(5000))
|
||||
if call.Err != nil {
|
||||
panic(call.Err)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue