Skip to main content

IsLandDisabled

Function IsLandDisabled 

Source
fn IsLandDisabled() -> bool
Expand description

Master “disable Land customisations” gate. Returns true when the Disable=true env var is set (PascalCase, single-word, matching the rest of Land’s env surface in .env.Land.Diagnostics). When enabled, Mountain skips:

  • WindowEvent::CloseRequested intercept (Cmd+W routes natively)
  • Cocoon + Air sidecar spawn
  • The Wind / SkyBridge advanced-features registration
  • The smoke-test gating that would otherwise activate via Sky

Code paths are NOT removed - just skipped at runtime so a clean Disable= env var (or Disable=false) restores stock behaviour.