copy mpris implementation from infinitime library to itd, where it really belongs
moved dbus.go to an internal utils package added context function parameter to initMusicCtrl and updated main.go to pass it updated calls.go, maps.go, music.go, and notifs.go to use utils package for getting a dus connection
This commit is contained in:
		| @@ -26,11 +26,12 @@ import ( | ||||
| 	"github.com/rs/zerolog/log" | ||||
| 	"go.arsenm.dev/infinitime" | ||||
| 	"go.arsenm.dev/itd/translit" | ||||
| 	"go.arsenm.dev/itd/internal/utils" | ||||
| ) | ||||
|  | ||||
| func initNotifRelay(ctx context.Context, dev *infinitime.Device) error { | ||||
| 	// Connect to dbus session bus | ||||
| 	bus, err := newSessionBusConn(ctx) | ||||
| 	bus, err := utils.NewSessionBusConn(ctx) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user