-
Notifications
You must be signed in to change notification settings - Fork 455
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
Windows support #602
Windows support #602
Conversation
As this is (compared to other PRs) larger change I'll add it to the v1 milestone for now. This doesn't mean however that it won't get merged beforehand. |
This seems to work perfectly fine on windows, just needs a rebase. |
I rebased the branch and improved the logging now |
Thanks for that! I will merge this after I can update the librespot dependency. I will take a closer look at it then and do a proper code review. I just skimmed through it for now. |
Just want to add that there's currently a runtime dependency on libogg (from Edit: Skimmed through the implementation, and it looks like tremor and libogg are alternatives to lewton. Is there a reason we couldn't switch to the Rust implementation? |
Also, why aren't we using the windows services API for this? It seems to fit the role best. |
I'm longer working on this and don't plan on working on it since I finally got rid of windows on the last machine I used that had it, if my memory is right I didn't use services because they are hard to get right and require special permissions while this method doesn't |
Tried this out today. Seems to work well so far... Found one Issue: When I switch the audio output devices while spotifyd is running it keeps playing on the old device. Tested on latest Windows 10 |
A small issue I ran into is that I can't get the |
Seems that on Windows (10) the following commands work:
And this PR will build/run completely fine. However, it's not currently possible to install it using:
As it complains about:
Which suggests to me it's ignoring the |
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. |
Why is this dead? This is a great feature. I want to have spotify running HQ, without the desktop client. |
Hi, just want to express my support for getting this pr in. It would be really cool to get a lightweight spotify client for windows. |
I can confirm that with a bit of finagling, the code from the PR branch runs on Windows 8.1 I found that I had to specify limited version ranges for [dependencies.librespot]
version = ">= 0.1.1, < 0.1.2"
default-features = false
features = ["with-tremor"]
[build-dependencies.protobuf-codegen]
version = "~2.8.1, < 2.9.0"
[build-dependencies.protobuf-codegen-pure]
version = "~2.8.1, < 2.9.0" I think I might have also needed to manually update the manifest and lockfiles for I definitely had to regenerate/update the lockfile for To build |
What needs to be done to get this merged? |
It should atleast be updated to the current master. |
Hi there, any help needed here? Would love to run this daemon on Windows. |
I am using librespot instead |
Is this PR still active? |
Is something known? |
I believe it is currently preferred to use librespot (which was linked three comments above) |
I built this, and after playing with it for a bit, managed to get it to work.
Remove librespot's |
@Katzenwerfer @DomingoMG @CypherpunkSamurai If someone could get this into a working, mergeable state, I may be able to throw together a Windows box to try it. |
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.
test
We need two reviews for this PR to pass. I'll try cloning the branch and testing it out. If anyone else got time please do. |
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.
LGTM
@RakeshChowdhury As has been pointed out in this comment, this PR currently is not mergeable and - up until now - no one has stepped up to fix the conflicts. So unless someone with interest shows up to get it working, this PR is unfortunately not going to happen. :/ |
My branch here https://github.com/BKasin/spotifyd/tree/windows is rebased against the current commit of master, and seems to be working. Config file paths could definitely be handled better, and I'll have to research windows daemons/services if a better solution for that is desired. But as things stand it seems to work completely fine. What is the preferred way for me to handle getting that branch ready? Should I open a PR or should this one be re-targeted? |
@BKasin thank you for working on this! I haven't had a look yet, but opening a new PR seems like the easiest way forward. |
This PR allows
spotifyd
to run on windows as non-daemon and daemon-like, only the rodio-backend is supported and the config file is stored on:All output is logged into a
.spotifyd.log
file on windows when running in both non-daemon and daemon mode although in daemon mode the startup is logged to the console before a detached subprocess with the same binary and arguments (with the exception that the argument--no-daemon
is set) is started