MCPcopy Create free account
hub / github.com/Autoparallel/learner / open_pdf_with_system_viewer

Method open_pdf_with_system_viewer

crates/learnerd/src/tui/state.rs:465–467  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

463 /// Opens a PDF file using the Windows system viewer.
464 #[cfg(target_os = "windows")]
465 fn open_pdf_with_system_viewer(&self, path: &str) {
466 let _ = std::process::Command::new("cmd").args(["/C", "start", "", path]).spawn();
467 }
468
469 /// Opens a PDF file using the macOS system viewer.
470 #[cfg(target_os = "macos")]

Callers 1

handle_open_pdfMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected