Skip to content

Commit 2986282

Browse files
committed
Remove the MPRIS build option by default, in order to avoid media key use conflicts (issue #89)
1 parent 7674148 commit 2986282

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ toml = "0.4.2"
4747
app_dirs = { version = "1.2.1", optional = true } # For obtaining and creating either the %APPDATA%, the dotfile path or similar
4848

4949
[features]
50-
default = ["gui", "ffmpeg", "pulse", "mpris"]
50+
default = ["gui", "ffmpeg", "pulse"]
5151
gui = ["gtk", "gdk", "gio", "percent-encoding", "directories", "app_dirs", "gdk-pixbuf"]
5252
pulse = [ "pulsectl-rs", "libpulse-binding" ]
5353
mpris = [ "mpris-player" ]

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,14 @@ echo 'export PATH="$HOME/.cargo/bin:$PATH"' | tee -a ~/.profile ~/.bashrc
6161
source ~/.bashrc
6262

6363
sudo apt install build-essential libasound2-dev libgtk-3-dev libssl-dev -y
64-
cargo install songrec
64+
cargo install songrec --no-default-features -F gui,ffmpeg,pulse,mpris
6565
songrec
6666
```
6767

6868
Note: It is not mandatory, but if you want to be able to recognize more formats than WAV, OGG, FLAC and MP3, you should ensure that you have the `ffmpeg` package installed.
6969

70+
Note: You may remove dependencies over GTK+, Pulseaudio/PipeWire's libpulse or DBus MPRIS through editing the `-F` flag passed to `cargo`.
71+
7072
## Compilation
7173

7274
(**WARNING**: Remind to compile the code in "--release" mode for correct performance.)

0 commit comments

Comments
 (0)