diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-03-16 11:01:41 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-03-16 11:01:41 +0100 |
| commit | 040b91a7a5b085f8aa0bec3580bf7d68450e6fc9 (patch) | |
| tree | f27088c562fea977c9cbb97ffde3e81590db91fa /src/sources/mod.rs | |
| parent | 616cee0382cb0b9e287d1037ec82813aa859c1a0 (diff) | |
Add linux config
Diffstat (limited to 'src/sources/mod.rs')
| -rw-r--r-- | src/sources/mod.rs | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/src/sources/mod.rs b/src/sources/mod.rs index 78f7499..087a87f 100644 --- a/src/sources/mod.rs +++ b/src/sources/mod.rs @@ -5,28 +5,16 @@ mod apple_music; #[cfg(target_os = "macos")] mod spotify; -// #[cfg(not(target_os = "macos"))] -// mod rhythmbox; -// #[cfg(not(target_os = "macos"))] -// mod quod_libe; -// #[cfg(not(target_os = "macos"))] -// mod strawberry; -// #[cfg(not(target_os = "macos"))] -// mod tauon; +#[cfg(target_os = "linux")] +mod dbus; #[cfg(target_os = "macos")] use apple_music::AppleMusic; #[cfg(target_os = "macos")] use spotify::Spotify; -// #[cfg(not(target_os = "macos"))] -// use rhythmbox::Rhythmbox; -// #[cfg(not(target_os = "macos"))] -// use quod_libet::QuodLibet; -// #[cfg(not(target_os = "macos"))] -// use strawberry::Strawberry; -// #[cfg(not(target_os = "macos"))] -// use tauon::Tauon; +#[cfg(target_os = "linux")] +use dbus::Dbus; use crate::Track; @@ -94,10 +82,7 @@ pub fn available_sources() -> Vec<Box<dyn LyricsSource>> { #[cfg(not(target_os = "macos"))] { - // sources.push(Box::new(Rhythmbox::new())); - // sources.push(Box::new(QuodLibet::new())); - // sources.push(Box::new(Strawberry::new())); - // sources.push(Box::new(Tauon::new())); + sources.push(Box::new(Dbus::new())); } sources |