Skip to main content

get_plugin_dir

Function get_plugin_dir 

Source
pub fn get_plugin_dir() -> Result<PathBuf>
Expand description

Returns the path to the Zoi plugin directory.

The directory is not created here: looking for plugins on every run would otherwise leave an empty ~/.local/share/zoi/plugins wherever Zoi runs, including in the root of a system image being built. Code that writes into it creates it.

ยงErrors

Returns an error if the user home directory cannot be found.