use crate::api::schema::InstalledPluginInfo; pub(super) fn plugin_path_env(plugin: &InstalledPluginInfo) -> Vec<(String, String)> { let component = crate::api::schema::plugin_managed_path_component(&plugin.plugin_id); let config_dir = crate::config::config_dir().join("plugins").join(&component); let state_dir = crate::config::state_dir().join("plugins").join(component); vec![ ("HERDR_PLUGIN_ROOT".to_string(), plugin.plugin_root.clone()), ( "HERDR_PLUGIN_CONFIG_DIR".to_string(), config_dir.display().to_string(), ), ( "HERDR_PLUGIN_STATE_DIR".to_string(), state_dir.display().to_string(), ), ] }