Skip to main content

SHEET 06 OF 41

/DOC/:SLUG

PART:
03 DOCUMENTATION
CIRCULATION:
PUBLIC
SOURCE:
pages/Doc/[...Slug].astro
AS OF:
2026-12-02

OS-specific resolution for every per-bundle, OS-managed, and temp-directory path Land touches on macOS, Linux, and Windows.

/Reference

Filesystem Footprint - Platform Paths

OS-specific resolution for every per-bundle, OS-managed, and temp-directory path Land touches on macOS, Linux, and Windows.

PUBLISHED REFERENCE Source/Content/doc/filesystem-footprint-platform-paths.md UNAVAILABLE UNAVAILABLE REFERENCE 2 Filesystem Footprint

OS-specific resolution for every per-bundle, OS-managed, and temp-directory path Land touches.


Resolution Rule 📐

All per-bundle paths flow through Tauri’s PathResolver, which delegates to the dirs crate. Three helpers do almost all the work:

Helper 🍎 macOS 🐧 Linux 🪟 Windows
app_data_dir() $HOME/Library/Application Support/<id>/ $XDG_DATA_HOME/<id>/ or $HOME/.local/share/<id>/ %APPDATA%\<id>\ (C:\Users\<user>\AppData\Roaming\<id>\)
app_config_dir() $HOME/Library/Application Support/<id>/ $XDG_CONFIG_HOME/<id>/ or $HOME/.config/<id>/ %APPDATA%\<id>\
app_cache_dir() $HOME/Library/Caches/<id>/ $XDG_CACHE_HOME/<id>/ or $HOME/.cache/<id>/ %LOCALAPPDATA%\<id>\ (C:\Users\<user>\AppData\Local\<id>\)
app_log_dir() $HOME/Library/Logs/<id>/ $XDG_DATA_HOME/<id>/logs/ %LOCALAPPDATA%\<id>\logs\
temp_dir() (via std::env) $TMPDIR (/var/folders/<XX>/T/) /tmp/ %TEMP% (C:\Users\<user>\AppData\Local\Temp\)

<id> is whichever per-profile Tauri bundle identifier the build emits.

macOS folds app_data_dir and app_config_dir into the same location; Linux and Windows split them.

$HOME (macOS, Linux) and %USERPROFILE% (Windows) are the per-user home roots the OS reports. Where a table below shows $HOME on both POSIX platforms, the resolved directory differs only in that root.


macOS Layout 🍎

Status: 🟢 fully supported (primary development target).

Per-bundle paths (Tauri-resolved)

Path Helper Producer Purpose
~/Library/Application Support/<bundle>/machine-id.txt app_data_dir ProcessManagement/InitializationData.rs::get_or_generate_machine_id Stable per-install UUID surfaced as vscode.env.machineId. Generated once with Uuid::new_v4(), persisted.
~/Library/Application Support/<bundle>/User/settings.json app_data_dir AppLifecycle.rs:441 (seeds {}) User settings.
~/Library/Application Support/<bundle>/User/keybindings.json app_data_dir AppLifecycle.rs:442 (seeds []) Keybinding overrides.
~/Library/Application Support/<bundle>/User/tasks.json app_data_dir AppLifecycle.rs:443 (seeds {}) Tasks definitions.
~/Library/Application Support/<bundle>/User/extensions.json app_data_dir AppLifecycle.rs:444 (seeds []) Extension recommendations.
~/Library/Application Support/<bundle>/User/mcp.json app_data_dir AppLifecycle.rs:445 (seeds {}) MCP server registry.
~/Library/Application Support/<bundle>/User/globalStorage/ app_data_dir Workbench + Environment/StorageProvider.rs Per-extension Memento-backed globalState (JSON-per-extension).
~/Library/Application Support/<bundle>/User/workspaceStorage/ app_data_dir Workbench Per-workspace state.
~/Library/Application Support/<bundle>/User/profiles/... app_data_dir Workbench profile system Profile-scoped settings overlay.
~/Library/Application Support/<bundle>/User/snippets/ app_data_dir Workbench User-defined snippets.
~/Library/Application Support/<bundle>/User/prompts/ app_data_dir Chat surfaces Saved chat prompts.
~/Library/Application Support/<bundle>/CachedConfigurations/... app_data_dir Workbench configuration system Computed defaults overlay cache.
~/Library/Application Support/<bundle>/logs/<ts>/Mountain.dev.log app_data_dir IPC/DevLog/WriteToFile.rs::ResolveLogDirectory Per-session timestamped Rust-side log. Not pruned today.
~/Library/Application Support/<bundle>/logs/window1/output_* app_data_dir Workbench LogService Per-window workbench-side log files. Seeded directory is logs/window1/.
~/Library/Caches/<bundle>/ app_cache_dir Tauri runtime + webview asset caches 200+ MB after a few sessions. Not pruned by the app.
~/Library/Logs/<bundle>/ app_log_dir Tauri default (rarely used) Empty in normal operation; main logs land under app_data_dir.

OS-managed paths (created by macOS / WKWebView, not by Land code)

Path Owner Purpose
~/Library/Preferences/<bundle>.plist macOS NSUserDefaults Window position, recent docs, Tauri-set defaults. Cocoa-managed binary plist.
~/Library/WebKit/<bundle>/ WKWebView Webview localStorage, IndexedDB, ServiceWorker caches. 50 - 400 MB typical.
~/Library/HTTPStorages/<bundle>/ URLSession HTTP cookies and credentials when URLSession is used. Empty if the webview handles all networking.
~/Library/Saved Application State/<bundle>.savedState/ AppKit Window restoration data when NSQuitAlwaysKeepsWindows is enabled.
~/Library/Logs/DiagnosticReports/<bundle>*.crash macOS diagnostic engine Crash reports (system-managed, written on crash only).

Temp-dir writes (macOS)

std::env::temp_dir() resolves to $TMPDIR, a per-user /var/folders/<XX>/T/ directory.

Path Producer Lifetime
$TMPDIR/land-zsh-integration-<pid>/.zshrc Environment/Terminal/ShellIntegration.rs:98 Per integrated-terminal launch. Process-scoped name, but the file lingers after the shell exits. macOS sweeps $TMPDIR infrequently; user accumulates one per launch.
$TMPDIR/vine_fallback.proto Cocoon/Services/Mountain/Client/Service.ts:556, gRPC/Server/Service.ts:1663 Per gRPC client init when the bundled proto resource is missing. Overwritten on each init; not deleted.
$TMPDIR/land-editor-logs/<ts>/ IPC/DevLog/WriteToFile.rs:84 Fallback only. Used when AppDataPrefix::Fn() cannot resolve a bundle identifier. Normally empty.

Linux Layout 🐧

Status: 🟡 partial (Tauri’s path resolver works; webview-storage paths differ from WKWebView equivalents).

Per-bundle paths (Tauri-resolved)

<XDG_*> defaults respected; otherwise dirs falls back to the freedesktop.org base-directory spec.

Path Helper Producer Purpose
~/.local/share/<bundle>/machine-id.txt app_data_dir InitializationData.rs Same content as macOS, different location.
~/.local/share/<bundle>/User/{settings,keybindings,tasks,extensions,mcp}.json app_data_dir AppLifecycle.rs Workbench userdata defaults.
~/.local/share/<bundle>/User/globalStorage/ app_data_dir Workbench + StorageProvider.rs Per-extension Memento storage.
~/.local/share/<bundle>/logs/<ts>/Mountain.dev.log app_data_dir IPC/DevLog/WriteToFile.rs Per-session Rust-side log. Same naming as macOS.
~/.config/<bundle>/ app_config_dir Environment/ConfigurationProvider/* Settings + keybindings flow through this resolver. May coexist with app_data_dir content depending on caller.
~/.cache/<bundle>/ app_cache_dir Tauri runtime + webview asset caches Webview cache equivalent.

OS-managed paths (Linux)

Path Owner Purpose
~/.local/share/<bundle>/ WebKitGTK (Tauri default) Webview localStorage / IndexedDB. Layout matches app_data_dir and lives inside the same per-bundle tree.
~/.config/<bundle>/dconf (if used) GNOME settings backend Tauri does not write here today, but some Linux desktops persist window state via dconf.
Crash reports systemd-coredump / apport Vary by distro (~/.cache/abrt/, /var/lib/systemd/coredump/, …). Not Land-controlled.

Temp-dir writes (Linux)

std::env::temp_dir() resolves to /tmp/ (unless $TMPDIR overrides).

Path Producer Note
/tmp/land-zsh-integration-<pid>/.zshrc Environment/Terminal/ShellIntegration.rs systemd-tmpfiles sweeps /tmp on boot, so leakage is less severe than macOS.
/tmp/vine_fallback.proto Cocoon/Services/Mountain/Client/Service.ts Same fallback semantics as macOS.
/tmp/land-editor-logs/<ts>/ IPC/DevLog/WriteToFile.rs Same fallback semantics as macOS.

Windows Layout 🪟

Status: 🔴 pending - dirs crate paths and Tauri PathResolver are documented here for completeness, but the editor has not been smoke-tested on Windows. Treat the table as a forward-looking reference; expect minor drift when the platform target lands.

Per-bundle paths (Tauri-resolved)

Path Helper Notes
%APPDATA%\<bundle>\machine-id.txt app_data_dir dirs resolves to FOLDERID_RoamingAppData → C:\Users\<user>\AppData\Roaming\<bundle>\.
%APPDATA%\<bundle>\User\{settings,keybindings,tasks,extensions,mcp}.json app_data_dir Same JSON shape as macOS / Linux.
%APPDATA%\<bundle>\User\globalStorage\ app_data_dir
%APPDATA%\<bundle>\logs\<ts>\Mountain.dev.log app_data_dir Per-session Rust-side log.
%LOCALAPPDATA%\<bundle>\ app_cache_dir FOLDERID_LocalAppData → C:\Users\<user>\AppData\Local\<bundle>\. Tauri/webview caches.
%LOCALAPPDATA%\<bundle>\logs\ app_log_dir Tauri default (rarely used).

OS-managed paths (Windows)

Path Owner Purpose
%LOCALAPPDATA%\<bundle>\EBWebView\ WebView2 Edge WebView2 storage (cookies, IndexedDB, localStorage, ServiceWorker caches). Equivalent of Library/WebKit.
HKCU\Software\<bundle>\ Windows Registry Tauri / Cocoa-equivalent default storage. App may write window state here.
%LOCALAPPDATA%\CrashDumps\<bundle>*.dmp Windows Error Reporting Minidump destination on crash.

Temp-dir writes (Windows)

std::env::temp_dir() resolves to %TEMP% → C:\Users\<user>\AppData\Local\Temp\.

Path Producer Note
%TEMP%\land-zsh-integration-<pid>\.zshrc Environment/Terminal/ShellIntegration.rs No-op on Windows in practice - the zsh-integration path only triggers when the user opens a zsh shell.
%TEMP%\vine_fallback.proto Cocoon/Services/Mountain/Client/Service.ts Same fallback semantics as macOS.
%TEMP%\land-editor-logs\<ts>\ IPC/DevLog/WriteToFile.rs Same fallback semantics as macOS.

User-Dotfile Resolution (cross-OS) 🏞️

The ~/.fiddee/ tree resolves the same way on every OS. Summary:

OS Resolves to
🍎 macOS $HOME/.fiddee/
🐧 Linux $HOME/.fiddee/
🪟 Windows %USERPROFILE%\.fiddee\

~/.land/extensions/ (legacy fan-out) follows the same convention.


Foreign-Tool Directories Land Creates 🌐

Binary/Main/AppLifecycle.rs:393 pre-creates two directories that belong to other tools, so VS Code’s startup stat probes don’t log errors. Cross-OS:

Path POSIX (macOS / Linux) 🪟 Windows
~/.claude/agents/ $HOME/.claude/agents/ C:\Users\<user>\.claude\agents\
~/.copilot/agents/ $HOME/.copilot/agents/ C:\Users\<user>\.copilot\agents\

Land does not write to either path - only mkdir -p. If the user does not have those tools installed, these dirs nonetheless persist after Land’s first boot.


In-Tree Build Artefacts 🛠️

Cross-OS, not part of user-install footprint:

Path Purpose
Element/Mountain/Target/ Rust build output. Hundreds of MB to several GB per profile.
Element/Mountain/Target/debug/extensions.manifest.json PreBake cache (built-in extension manifests).
Element/Mountain/Target/Resources/extensions/ Bundled built-in extensions copied into the .app’s Resources tree. Read-only.
Element/Mountain/Target/<profile>/.../*.app Built bundle. Maintain/Script/SignBundle.sh re-signs in place.
Element/Sky/Target/ Astro / Vite build output (workbench + webview assets).
Element/<Other>/Target/ Per-Element TypeScript compile output.
Element/Mountain/Cargo.toml.Backup Build-script residue (Maintain wrappers rewrite + restore; sometimes leaves a diff).

See Also 📚

Reference, 12 PAGES, page 3 of 12

THE LAYER'S INDEX

NEXT: /BLOG 04 BLOG

NOTES FROM THE BUILD, NEWEST FIRST

〈06〉 /DOC/:SLUG 41 SHEETS AS OF: 2026-12-02