commit 5e2a829f4401b3fc7f732302836730141e1e027e parent 753711cd54f269754aa693624a5e051c3ce6077b Author: William Casarin <jb55@jb55.com> Date: Tue, 4 Jan 2022 10:59:27 -0800 fix spotify-service Diffstat:
M | bin/spotify-service | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/bin/spotify-service b/bin/spotify-service @@ -1,4 +1,6 @@ #!/usr/bin/env bash +options=$(dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames \ + | grep spotify \ + | sedcut '"([^"]+)"') -service=${1:-spotify} - +grep 'spotify$' <<<"$options" || grep -v 'spotify$' <<<"$options"