fixed dbus version

This commit is contained in:
Niklas 2020-10-10 00:03:23 +02:00
parent bd4106b69f
commit bc77a54f25
3 changed files with 5 additions and 5 deletions

2
go.mod
View File

@ -3,6 +3,6 @@ module git.kapelle.org/niklas/gotify-desktop
go 1.15 go 1.15
require ( require (
github.com/godbus/dbus v4.1.0+incompatible github.com/godbus/dbus/v5 v5.0.3
github.com/gorilla/websocket v1.4.2 github.com/gorilla/websocket v1.4.2
) )

4
go.sum
View File

@ -1,4 +1,4 @@
github.com/godbus/dbus v4.1.0+incompatible h1:WqqLRTsQic3apZUK9qC5sGNfXthmPXzUZ7nQPrNITa4= github.com/godbus/dbus/v5 v5.0.3 h1:ZqHaoEF7TBzh4jzPmqVhE/5A1z9of6orkAe5uHoAeME=
github.com/godbus/dbus v4.1.0+incompatible/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw= 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 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=

View File

@ -12,7 +12,7 @@ import (
"os" "os"
"path" "path"
"github.com/godbus/dbus" "github.com/godbus/dbus/v5"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
) )
@ -181,7 +181,7 @@ func main() {
param := url.Values{} param := url.Values{}
param.Add("token", token) param.Add("token", token)
dbusConn, err := dbus.ConnectSessionBus() dbusConn, err := dbus.SessionBus()
if err != nil { if err != nil {
log.Printf("Dbus error: %s", err.Error()) log.Printf("Dbus error: %s", err.Error())
os.Exit(1) os.Exit(1)