Skip to main content

app_support_dir

Function app_support_dir 

Source
pub fn app_support_dir() -> Result<PathBuf, Error>
Expand description

Resolve forge’s machine-local application-support directory (~/Library/Application Support/forge on macOS, $XDG_DATA_HOME/forge on Linux). Distinct from the claude config dir: this holds forge’s OWN per-machine state - the diagnostics logs and the single-instance lock both live under here, and it is never synced across machines.

§Errors

Error::Connection when none of dirs::data_local_dir(), dirs::cache_dir(), or dirs::home_dir() resolve. Per the project’s Hard Rule #14 there is no current_dir() fallback - the path must not vary with the launch directory.