use std::path::Path;
pub fn open_in_player(path: &Path) {
#[cfg(target_os = "windows")]
let _ = std::process::Command::new("cmd")
.args(["/c", "start", "", &path.to_string_lossy()])
.spawn();
#[cfg(not(target_os = "windows"))]
let _ = std::process::Command::new("xdg-open").arg(path).spawn();
}