sk-desktop 0.4.0

Skathi's desktop integration: argv, shell, single instance, custom protocols and the tray
Documentation
//! Non-Windows: the calls exist and refuse, so the crate builds and validation tests run everywhere.

use std::path::Path;

use crate::Fail;

pub fn thread_init() {}

fn unsupported(verb: &str) -> Fail {
    Fail::new(
        "NotSupportedError",
        format!("{verb} is not implemented on this platform yet"),
    )
    .code("ENOSYS")
}

pub fn open_external(_url: &str) -> Result<(), Fail> {
    Err(unsupported("openExternal"))
}

pub fn open_path(_path: &Path) -> Result<(), Fail> {
    Err(unsupported("openPath"))
}

pub fn show_item(_path: &Path) -> Result<(), Fail> {
    Err(unsupported("showItemInFolder"))
}

pub fn trash(_path: &Path) -> Result<(), Fail> {
    Err(unsupported("trashItem"))
}