User Settings Store
constructor(settingsDir: Path = defaultSettingsDir(), userHome: Path = Path(System.getProperty("user.home")), defaultWorkspaceProvider: (Path) -> Path = ::resolveDefaultWorkspace)(source)
Parameters
settings Dir
directory containing settings.toml; defaults to ~/.ksl/.
user Home
the user's home directory, used to resolve the default workspace path and as the last-resort fallback for stale-path recovery. Defaults to the JVM's user.home system property.
default Workspace Provider
resolves the "out-of-the-box" workspace location when the user has not yet set one via setCurrentDirectory (and when a previously-saved path has gone stale). Defaults to resolveDefaultWorkspace, which prefers <userHome>/Documents/KSLWork and falls back to <userHome>/KSLWork on systems without a Documents folder. Tests can inject a temp-dir-based provider to stay isolated.