sptlrx icon indicating copy to clipboard operation
sptlrx copied to clipboard

Any plans to support FreeBSD?

Open duckyondiscord opened this issue 1 year ago • 6 comments

(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.

duckyondiscord avatar Nov 28 '23 14:11 duckyondiscord

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 :)

raitonoberu avatar Nov 28 '23 15:11 raitonoberu

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 avatar Nov 28 '23 16:11 duckyondiscord

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 avatar Nov 28 '23 16:11 duckyondiscord

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

duckyondiscord avatar Nov 28 '23 16:11 duckyondiscord

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

raitonoberu avatar Nov 28 '23 16:11 raitonoberu

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

duckyondiscord avatar Nov 29 '23 20:11 duckyondiscord