Skip to main content

set_root

Function set_root 

Source
pub fn set_root(dir: PathBuf) -> Result<(), PathBuf>
Expand description

Pin the profile root for THIS process (the in-process form of --profile/--home). Returns Err(dir) if a root was already pinned (first set wins). The spawned daemon inherits the same root via the MCPMESH_HOME env var the launcher sets, so both ends resolve identically.