From bc77a54f25c14a869bc9883b84004104b9ddc4c9 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sat, 10 Oct 2020 00:03:23 +0200 Subject: [PATCH] fixed dbus version --- go.mod | 2 +- go.sum | 4 ++-- main.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 4e0b28f..02588fe 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,6 @@ module git.kapelle.org/niklas/gotify-desktop go 1.15 require ( - github.com/godbus/dbus v4.1.0+incompatible + github.com/godbus/dbus/v5 v5.0.3 github.com/gorilla/websocket v1.4.2 ) diff --git a/go.sum b/go.sum index e62d8aa..ad33191 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -github.com/godbus/dbus v4.1.0+incompatible h1:WqqLRTsQic3apZUK9qC5sGNfXthmPXzUZ7nQPrNITa4= -github.com/godbus/dbus v4.1.0+incompatible/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw= +github.com/godbus/dbus/v5 v5.0.3 h1:ZqHaoEF7TBzh4jzPmqVhE/5A1z9of6orkAe5uHoAeME= +github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= diff --git a/main.go b/main.go index 4542741..d9d7188 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( "os" "path" - "github.com/godbus/dbus" + "github.com/godbus/dbus/v5" "github.com/gorilla/websocket" ) @@ -181,7 +181,7 @@ func main() { param := url.Values{} param.Add("token", token) - dbusConn, err := dbus.ConnectSessionBus() + dbusConn, err := dbus.SessionBus() if err != nil { log.Printf("Dbus error: %s", err.Error()) os.Exit(1)