From ac5579ae9e9212ec66f56fcf928805db7f86300e Mon Sep 17 00:00:00 2001
From: j1nx
Date: Fri, 14 Oct 2022 09:56:14 +0200
Subject: [PATCH] Bump and switch spotifyd over to session DBUS
---
.../spotifyd/0001-Switch-to-system-dbus.patch | 25 -------------------
.../package/spotifyd/spotifyd.mk | 2 +-
2 files changed, 1 insertion(+), 26 deletions(-)
delete mode 100644 buildroot-external/package/spotifyd/0001-Switch-to-system-dbus.patch
diff --git a/buildroot-external/package/spotifyd/0001-Switch-to-system-dbus.patch b/buildroot-external/package/spotifyd/0001-Switch-to-system-dbus.patch
deleted file mode 100644
index 221a0b57..00000000
--- a/buildroot-external/package/spotifyd/0001-Switch-to-system-dbus.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 97ae976abdfa5a722bc32885e1ef498a04af2f3d Mon Sep 17 00:00:00 2001
-From: Peter Steenbergen
-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, 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
-
diff --git a/buildroot-external/package/spotifyd/spotifyd.mk b/buildroot-external/package/spotifyd/spotifyd.mk
index c17bc6cb..698b5bcb 100644
--- a/buildroot-external/package/spotifyd/spotifyd.mk
+++ b/buildroot-external/package/spotifyd/spotifyd.mk
@@ -4,7 +4,7 @@
#
################################################################################
-SPOTIFYD_VERSION = ae6dac7a54f899316674ba57ce4a0f9890cd2b1c
+SPOTIFYD_VERSION = ddfcbb2eecd3b5be94533f7374180df412659b4e
SPOTIFYD_SITE = $(call github,Spotifyd,spotifyd,$(SPOTIFYD_VERSION))
SPOTIFYD_LICENSE = GPL-3.0
SPOTIFYD_LICENSE_FILES = LICENSE