-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add configuration option for bus type #954
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This PR might be somewhat obsolete, if #977 gets accepted. It would be great to get some feedback from the maintainers, what I should do about this PR! Edit: I also rebased on the latest master, if you want to consider merging it. |
cdaa5d3
to
8ef32fb
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Anyone able to look at this (or decide that it is no longer relevant / needed)? |
8ef32fb
to
bfceb56
Compare
I rebased this on top of master. @simonpersson could you have a look at this? (Or someone else from the maintainer team, of course) |
Hi! This looks OK to me, but I don't use dbus myself so I don't feel comfortable to merge. If you could fix the rustfmt check I'll approve, and then we hope some other maintainer can show up to test it a bit more. |
bfceb56
to
3e96276
Compare
Thanks for your feedback! I ran rustfmt (and the other pre-commit hooks) on the PR and CI should be fine now. |
3e96276
to
8d1d5fc
Compare
I just noticed that this PR had merge conflicts since quite some time and resolved them. The changes are not too complex, so it should be easy enough to review. |
For what it's worth, I can confirm that this PR works for me on a Raspberry Pi. However, the situation is still unclear to me :
Feedback : |
@GChalony, glad to hear that it works!
Unfortunately, it has to, at least in some cases. Simple operations though like
At least as far as I know, the issue is still not resolved. The first thing you linked to was closed by the stale bot and the second one did not introduce the possibility to use the system bus for MPRIS, it only reworked some backend stuff. |
Right that's basically what I suspected. It's still a win if it doesn't take 2s to pause. Well as far as I'm concerned thus PR can be merged. I don't know much about Rust, but I can review if you need an approver :) |
5f13de5
to
7f249ff
Compare
Add a configuration option that determines if the MPRIS interface should use the session or the system bus. The default is the session bus.
7f249ff
to
4c6664b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool
Thank you! |
This adds a new configuration option to configure which bus should be used by spotifyd. It addresses situations like #944 or one I personally found me in, where access to the MPRIS interface on headless systems would really help a lot.
Since I'm quite new to the codebase as well as the Rust ecosystem in general, I'm not sure if everything I changed / added was a good idea. Therefore, I'm always happy to take improvement proposals and adapt the PR accordingly. 😀