[GH-ISSUE #185] Audio playback not detected in KDE media player #138

Closed
opened 2026-02-28 14:30:52 +03:00 by kerem · 5 comments
Owner

Originally created by @Drarig29 on GitHub (Sep 19, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/185

The Linux desktop environment KDE has a media player in the notification bar. It can show the playing audio and you can control the music with it (play/pause, previous/next tracks).

This is an example with the regular Spotify app.

image

But psst doesn't show there. And I can't use my KDE global shortcuts to control the audio playback.

Originally created by @Drarig29 on GitHub (Sep 19, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/185 The Linux desktop environment KDE has a media player in the notification bar. It can show the playing audio and you can control the music with it (play/pause, previous/next tracks). This is an example with the **regular Spotify app**. ![image](https://user-images.githubusercontent.com/9317502/133933816-1946e530-4af8-44c9-83c0-be8f7b6f8822.png) But `psst` doesn't show there. And I can't use my KDE global shortcuts to control the audio playback.
kerem 2026-02-28 14:30:52 +03:00
Author
Owner

@Drarig29 commented on GitHub (Sep 19, 2021):

Also, I use neofetch in my terminal and the current song wasn't showing.

This is an example with the regular Spotify app.

image

So I checked how it works:

github.com/dylanaraps/neofetch@429499e9b9/neofetch (L2868-L2878)

It retrieves the playback with this command:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.$(MUSIC_PLAYER) /org/mpris/MediaPlayer2 \
            org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' \
            string:'Metadata'

And it works with psst as MUSIC_PLAYER...

So I don't know what is missing in psst for KDE to be able to detect the audio playback.

<!-- gh-comment-id:922497486 --> @Drarig29 commented on GitHub (Sep 19, 2021): Also, I use `neofetch` in my terminal and the current song wasn't showing. This is an example with the **regular Spotify app**. ![image](https://user-images.githubusercontent.com/9317502/133934080-b96fc56a-dafc-4339-bde1-0c2d952820e9.png) So I checked how it works: https://github.com/dylanaraps/neofetch/blob/429499e9b9b39127a8a781d135cafb6babdea631/neofetch#L2868-L2878 It retrieves the playback with this command: ```bash dbus-send --print-reply --dest=org.mpris.MediaPlayer2.$(MUSIC_PLAYER) /org/mpris/MediaPlayer2 \ org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' \ string:'Metadata' ``` And it works with `psst` as `MUSIC_PLAYER`... So I don't know what is missing in psst for KDE to be able to detect the audio playback.
Author
Owner

@jpochyla commented on GitHub (Sep 20, 2021):

We're using the souvlaki crate for this.

<!-- gh-comment-id:922658200 --> @jpochyla commented on GitHub (Sep 20, 2021): We're using the [souvlaki](https://github.com/Sinono3/souvlaki) crate for this.
Author
Owner

@jpochyla commented on GitHub (Dec 24, 2021):

It looks like the souvlaki crate has fixed the issue, but we're intentionally pinned to an older version because zbus drags in a ton of cruft. Not sure what to do about this.

<!-- gh-comment-id:1000835839 --> @jpochyla commented on GitHub (Dec 24, 2021): It looks like the souvlaki crate has fixed the issue, but we're intentionally pinned to an older version because `zbus` drags in a ton of cruft. Not sure what to do about this.
Author
Owner

@charliethomson commented on GitHub (Jan 19, 2022):

@jpochyla It looks like souvlaki 0.5.0 removes the zbus dep, 0.5.0 also fixes this issue, wanna verify and bump?

<!-- gh-comment-id:1016655360 --> @charliethomson commented on GitHub (Jan 19, 2022): @jpochyla It looks like souvlaki 0.5.0 removes the zbus dep, 0.5.0 also fixes this issue, wanna verify and bump?
Author
Owner

@jpochyla commented on GitHub (Jan 19, 2022):

Souvlaki 0.5 is in master already, forgot to close this.

<!-- gh-comment-id:1016683408 --> @jpochyla commented on GitHub (Jan 19, 2022): Souvlaki 0.5 is in master already, forgot to close this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#138
No description provided.