OpenVoiceOS/buildroot-external/package/spotifyd/0001-Switch-to-system-dbus....

26 lines
971 B
Diff
Raw Normal View History

2021-10-31 19:30:37 +01:00
From 97ae976abdfa5a722bc32885e1ef498a04af2f3d Mon Sep 17 00:00:00 2001
From: Peter Steenbergen <info@j1nx.nl>
Date: Sun, 31 Oct 2021 13:36:46 +0100
Subject: [PATCH 1/1] Switch to system dbus
---
src/dbus_mpris.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dbus_mpris.rs b/src/dbus_mpris.rs
index 838f3b3..1e97540 100644
--- a/src/dbus_mpris.rs
+++ b/src/dbus_mpris.rs
@@ -114,7 +114,7 @@ fn create_spotify_api(token: &RspotifyToken) -> Spotify {
async fn create_dbus_server(api_token: RspotifyToken, spirc: Arc<Spirc>, device_name: String) {
// TODO: allow other DBus types through CLI and config entry.
let (resource, conn) =
- connection::new_session_sync().expect("Failed to initialize DBus connection");
+ connection::new_system_sync().expect("Failed to initialize DBus connection");
tokio::spawn(async {
let err = resource.await;
panic!("Lost connection to D-Bus: {}", err);
--
2.33.1