https://github.com/ther0n/beefweb_mpris
A Python wrapper that adds MPRIS support to foobar2000 running in WINE on Linux through the beefweb component REST API
https://github.com/ther0n/beefweb_mpris
beefweb-plugin foobar2000 linux mpris mpris2 wine
Last synced: about 1 year ago
JSON representation
A Python wrapper that adds MPRIS support to foobar2000 running in WINE on Linux through the beefweb component REST API
- Host: GitHub
- URL: https://github.com/ther0n/beefweb_mpris
- Owner: ther0n
- License: gpl-3.0
- Created: 2021-08-25T01:37:44.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T22:08:56.000Z (almost 2 years ago)
- Last Synced: 2025-03-26T18:52:04.915Z (over 1 year ago)
- Topics: beefweb-plugin, foobar2000, linux, mpris, mpris2, wine
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 13
- Watchers: 2
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# beefweb-mpris
Adds MPRIS support to foobar2000 running in WINE on Linux by using the beefweb REST API.
## Installation
Note: These are only tested on Fedora 40, but can be adapted to other distros
1. Install WINE (`sudo dnf install wine`)
2. Download the Foobar2000 installer and install in wine: `wine foobar2000-x64_v2.1.5.exe`
3. Install the beefweb plugin in foobar2000
4. 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
5. Install `beefweb_mpris`: `pip install --user git+https://github.com/ther0n/beefweb_mpris.git`
6. Create a script to launch foobar2000 somewhere in your $PATH, make sure it's executable with `chmod +x`
- For example `~/.local/bin/foobar2000`:
```bash
#!/bin/bash
env WINEPREFIX="/home/theron/.wine" wine "/home/theron/.wine/drive_c/Program Files/foobar2000/foobar2000.exe"
```
7. 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](https://aur.archlinux.org/cgit/aur.git/tree/foobar2000.sh?h=foobar2000))
8. 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
```
## Old Installation (Arch Linux)
Note: These are old instructions and were only tested on Arch linux but may still be useful for someone
1. Install foobar2000: `yay -S foobar2000`
2. Install beefweb in foobar2000
3. Install `beefweb_mpris`: `pip install --user git+https://github.com/ther0n/beefweb_mpris.git`
4. Run `beefweb_mpris` on the command line
5. 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](https://aur.archlinux.org/cgit/aur.git/tree/foobar2000.sh?h=foobar2000)
6. Create/edit a `.desktop` file to launch beefweb_mpris