Skip to main content

is_trusted

Function is_trusted 

Source
pub fn is_trusted(
    doc: &LayoutDoc,
    path: &Path,
    own_instance: Option<&str>,
    layouts_dir: Option<&Path>,
) -> bool
Expand description

Whether a file counts as trusted (spec §3.5): saved by this install and sitting in its default layouts folder. Only trusted files start terminal commands without the user’s say-so.