Skip to content
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

Any plans to support FreeBSD? #32

Closed
duckyondiscord opened this issue Nov 28, 2023 · 6 comments
Closed

Any plans to support FreeBSD? #32

duckyondiscord opened this issue Nov 28, 2023 · 6 comments

Comments

@duckyondiscord
Copy link

(Or *BSD if that's easily doable)
Currently it doesn't build on FreeBSD because the mpris source files are only for Linux, Windows, and Darwin.
I was wondering if there were any plans to support BSDs in there, in theory they should be similar or even the same as Linux.

@raitonoberu
Copy link
Owner

Hello, @duckyondiscord. I don't know anything about FreeBSD, but after a quick googling I found out that it also uses D-Bus (source). So the same implementation as in Linux should work here as well. You should be able to compile it by simply renaming mpris_linux.go to mpris_freebsd.go. As for providing the "official" binaries, first of all I want confirmation that this actually works :)

@duckyondiscord
Copy link
Author

Hello, @duckyondiscord. I don't know anything about FreeBSD, but after a quick googling I found out that it also uses D-Bus (source). So the same implementation as in Linux should work here as well. You should be able to compile it by simply renaming mpris_linux.go to mpris_freebsd.go. As for providing the "official" binaries, first of all I want confirmation that this actually works :)

Sure thing, I'll try and report back!

@duckyondiscord
Copy link
Author

image
@raitonoberu I am pleased to say that it just works, so you just need to make a copy of mpris_linux.go and name it mpris_freebsd.go :D

@duckyondiscord
Copy link
Author

Other BSDs will probably also work but that still needs testing :p

@raitonoberu
Copy link
Owner

Great. Next release will contain binaries for FreeBSD. I will add support for other BSDs as well, but their users will compile it themselves.

@duckyondiscord
Copy link
Author

On second thought I'll reopen this until it gets implemented as to not confuse people

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants