[GH-ISSUE #40] MPRIS support? #10

Closed
opened 2026-03-02 23:43:38 +03:00 by kerem · 11 comments
Owner

Originally created by @alosarjos on GitHub (May 24, 2022).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/40

Originally assigned to: @aome510 on GitHub.

Hi there! Just found this project. It looks great! Congratulations on it.

Do you plan on adding MPRIS support so it can be controlled with media keys on Linux?

Originally created by @alosarjos on GitHub (May 24, 2022). Original GitHub issue: https://github.com/aome510/spotify-player/issues/40 Originally assigned to: @aome510 on GitHub. Hi there! Just found this project. It looks great! Congratulations on it. Do you plan on adding MPRIS support so it can be controlled with media keys on Linux?
kerem 2026-03-02 23:43:38 +03:00
Author
Owner

@aome510 commented on GitHub (May 24, 2022):

Yeah, it was on the roadmap before :). However, I'm using MacOS now so MPRIS doesn't really work 😢 for me.

If there are many people requesting this feature, I can implement one.

For now, I guess you can use spotify_player as a remote player to control another client, such as Spotify official client or spotifyd, then the media keys should work.

<!-- gh-comment-id:1136155217 --> @aome510 commented on GitHub (May 24, 2022): Yeah, it was on the roadmap before :). However, I'm using MacOS now so MPRIS doesn't really work 😢 for me. If there are many people requesting this feature, I can implement one. For now, I guess you can use `spotify_player` as a [remote player](https://github.com/aome510/spotify-player#spotify-connect) to control another client, such as Spotify official client or [`spotifyd`](https://github.com/Spotifyd/spotifyd), then the media keys should work.
Author
Owner

@alosarjos commented on GitHub (May 24, 2022):

I've been using spotiyd + spotify-tui for some time, but there are some issues with spotifyd, and the repo looks like it's dying...

<!-- gh-comment-id:1136158331 --> @alosarjos commented on GitHub (May 24, 2022): I've been using [spotiyd](https://github.com/Spotifyd/spotifyd) + [spotify-tui](https://github.com/Rigellute/spotify-tui) for some time, but there are some issues with spotifyd, and the repo looks like it's dying...
Author
Owner

@aome510 commented on GitHub (May 24, 2022):

Oh, thanks for the context, you mean spotify-tui repo is dying? I can still see some active developments with spotifyd

<!-- gh-comment-id:1136162427 --> @aome510 commented on GitHub (May 24, 2022): Oh, thanks for the context, you mean `spotify-tui` repo is dying? I can still see some active developments with `spotifyd`
Author
Owner

@alosarjos commented on GitHub (May 24, 2022):

No, I meant spotifyd. Some periodic commit bursts on master, which I guess are some MR being checked from time to time. Milestones haven't changed in 3 months...

<!-- gh-comment-id:1136165908 --> @alosarjos commented on GitHub (May 24, 2022): No, I meant `spotifyd`. Some periodic commit bursts on master, which I guess are some MR being checked from time to time. Milestones haven't changed in 3 months...
Author
Owner

@elkrien commented on GitHub (May 25, 2022):

Definitely MPRIS support would be great. For now I use playerctl to control my players by my bar and for now I need to use ncspot because of this. I really like spotify-player and that's the only way that keeps me with ncspot for now :( Please implement MPRIS...

<!-- gh-comment-id:1136915084 --> @elkrien commented on GitHub (May 25, 2022): Definitely MPRIS support would be great. For now I use playerctl to control my players by my bar and for now I need to use ncspot because of this. I really like spotify-player and that's the only way that keeps me with ncspot for now :( Please implement MPRIS...
Author
Owner

@aome510 commented on GitHub (May 25, 2022):

Cool! I just found this crate so I guess it's possible to implement cross-platform media control supports. Will do some experiments.

<!-- gh-comment-id:1137345621 --> @aome510 commented on GitHub (May 25, 2022): Cool! I just found [this crate](https://github.com/Sinono3/souvlaki) so I guess it's possible to implement **cross-platform** media control supports. Will do some experiments.
Author
Owner

@alosarjos commented on GitHub (May 25, 2022):

That crate looks promising. If you need someone to test the MPRIS on Linux just mention me whenever it's on a branch and will give it a try ;)

<!-- gh-comment-id:1137621898 --> @alosarjos commented on GitHub (May 25, 2022): That crate looks promising. If you need someone to test the MPRIS on Linux just mention me whenever it's on a branch and will give it a try ;)
Author
Owner

@aome510 commented on GitHub (May 30, 2022):

@alosarjos @elkrien I have added the cross-platform media control support. Can you guys try it out by running the latest build from the master branch:

git clone https://github.com/aome510/spotify-player.git && cd spotify-player
cargo run

I have tested the support on MacOS and briefly on Ubuntu 22.04, but couldn't test it on Windows.

<!-- gh-comment-id:1140604003 --> @aome510 commented on GitHub (May 30, 2022): @alosarjos @elkrien I have added the cross-platform media control support. Can you guys try it out by running the latest build from the `master` branch: ```sh git clone https://github.com/aome510/spotify-player.git && cd spotify-player cargo run ``` I have tested the support on MacOS and briefly on Ubuntu 22.04, but couldn't test it on Windows.
Author
Owner

@alosarjos commented on GitHub (May 30, 2022):

Tested on Arch Linux with Gnome. Looks good to me. Multimedia keys work. Control from the MPRIS notification work. The media info changes correctly. Looks great!!!

<!-- gh-comment-id:1140700799 --> @alosarjos commented on GitHub (May 30, 2022): Tested on Arch Linux with Gnome. Looks good to me. Multimedia keys work. Control from the MPRIS notification work. The media info changes correctly. Looks great!!!
Author
Owner

@elkrien commented on GitHub (May 30, 2022):

Tested on Arch Linux + LeftWM. Works great without any problems :)
I'm not able to test on Windows.

<!-- gh-comment-id:1140885591 --> @elkrien commented on GitHub (May 30, 2022): Tested on Arch Linux + LeftWM. Works great without any problems :) I'm not able to test on Windows.
Author
Owner

@aome510 commented on GitHub (May 30, 2022):

Thanks guys 🙇

<!-- gh-comment-id:1141173967 --> @aome510 commented on GitHub (May 30, 2022): Thanks guys 🙇
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/spotify-player#10
No description provided.