Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.14 ·

Platform-Aware User Directory Detection

Entry
JSON All of v2.0.14
EntryKind: in v2.0.14,
ChangesSection of the release

What: Added cross-platform support for detecting standard user directories (Desktop, Documents, Downloads) with platform-specific environment variable handling.

How it works:

  • Windows: Uses USERPROFILE environment variable
  • Linux/WSL: Respects XDG directory specifications (XDG_DESKTOP_DIR, XDG_DOCUMENTS_DIR, XDG_DOWNLOAD_DIR)
  • macOS: Uses standard home directory paths
  • Unknown platforms: Falls back to default paths with a warning

Details:

  • Automatically detects the operating system and applies appropriate path resolution
  • Provides directory categorization to identify if a path is "home", "desktop", "documents", "downloads", or "other"
  • Evidence: Im1() at line 301093 and Yi0() at line 455838 in v2.0.14

See this entry in the whole of v2.0.14 →

Feedback