@@ -46,6 +46,7 @@ fn get_metadata(playable: Option<Playable>) -> Metadata {
|
||||
Variant(Box::new(Path::from(format!(
|
||||
"/org/ncspot/{}",
|
||||
playable
|
||||
.filter(|t| t.id().is_some())
|
||||
.map(|t| t.uri().replace(':', "/"))
|
||||
.unwrap_or_else(|| String::from("0"))
|
||||
)))),
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#![cfg(feature = "share_clipboard")]
|
||||
|
||||
#[cfg(feature = "share_selection")]
|
||||
use clipboard::x11_clipboard::{Primary, X11ClipboardContext};
|
||||
#[cfg(not(feature = "share_selection"))]
|
||||
use clipboard::ClipboardContext;
|
||||
use clipboard::ClipboardProvider;
|
||||
#[cfg(feature = "share_selection")]
|
||||
use clipboard::x11_clipboard::{X11ClipboardContext, Primary};
|
||||
|
||||
#[cfg(not(feature = "share_selection"))]
|
||||
pub fn read_share() -> Option<String> {
|
||||
|
||||
Reference in New Issue
Block a user