Allow primary selection for sharing

Adds a feature flag to use the primary selection instead of the
clipboard. Only works on Linux.
This commit is contained in:
Felix Van der Jeugt
2020-12-14 23:42:56 +01:00
committed by Henrik Friedrichsen
parent 3ab32a7c51
commit 02b66b6cdd
5 changed files with 44 additions and 14 deletions

View File

@@ -53,6 +53,7 @@ default-features = false
[features]
share_clipboard = ["clipboard"]
share_selection = ["clipboard"] # Use the primary selection for sharing - linux only
alsa_backend = ["librespot-playback/alsa-backend"]
pulseaudio_backend = ["librespot-playback/pulseaudio-backend"]
rodio_backend = ["librespot-playback/rodio-backend"]