Adds MPRIS support to foobar2000 running in WINE on Linux by using the beefweb REST API.
Note: These are only tested on Fedora 40, but can be adapted to other distros
-
Install WINE (
sudo dnf install wine
) -
Download the Foobar2000 installer and install in wine:
wine foobar2000-x64_v2.1.5.exe
-
Install the beefweb plugin in foobar2000
-
Install (potential) dependencies
sudo dnf -y groupinstall "Development Tools"
sudo dnf install cairo-devel pkg-config python3-pip python3-devel cmake gobject-introspection-devel cairo-gobject-devel
- Some of these may not be needed, but all were needed for development
-
Install
beefweb_mpris
:pip install --user git+https://github.com/ther0n/beefweb_mpris.git
-
Create a script to launch foobar2000 somewhere in your $PATH, make sure it's executable with
chmod +x
- For example
~/.local/bin/foobar2000
:
#!/bin/bash env WINEPREFIX="/home/theron/.wine" wine "/home/theron/.wine/drive_c/Program Files/foobar2000/foobar2000.exe"
- For example
-
Edit
$CONFIG/beefweb_mpris/config.yaml
to match your settings for beefweb in foobar2000-
foobar2000-command
should be set to the foobar2000 launch script you just created (or the one included with the AUR package) -
Edit or create a
.desktop
file to launch beefweb_mpris- For example my
~/.local/share/applications/wine/Programs/foobar2000.desktop
file:
[Desktop Entry] Name=foobar2000 Exec=beefweb_mpris Type=Application StartupNotify=true Comment=Play, organize and tag your music. Path=/home/theron/.wine/dosdevices/c:/Program Files/foobar2000 Icon=9F8A_foobar2000.0 StartupWMClass=foobar2000.exe
- For example my
Note: These are old instructions and were only tested on Arch linux but may still be useful for someone
-
Install foobar2000:
yay -S foobar2000
-
Install beefweb in foobar2000
-
Install
beefweb_mpris
:pip install --user git+https://github.com/ther0n/beefweb_mpris.git
-
Run
beefweb_mpris
on the command line -
Edit
$CONFIG/beefweb_mpris/config.yaml
to match your settings for beefweb in foobar2000-
foobar2000-command
should be set to a command/script to run foobar2000 -
Create/edit a
.desktop
file to launch beefweb_mpris