artifactize-tools 0.10.0

Portable scoped tools and safe file access for artifactize.
Documentation
1
2
3
4
5
6
7
8
9
//! Open one path or URL with the desktop's default application, without a shell.

use std::{ffi::OsStr, io};

/// The platform layer chooses the desktop's own opener. The target is one argument, never a
/// shell command or command line.
pub async fn open(target: &OsStr) -> io::Result<()> {
    crate::platform::open_desktop(target).await
}