Skip to content
Tauri

homeDir

homeDir(): Promise<string>

Defined in: path.ts:396

Returns the path to the user’s home directory.

  • Linux: Resolves to $HOME.
  • macOS: Resolves to $HOME.
  • Windows: Resolves to {FOLDERID_Profile}.

Promise<string>

import { homeDir } from '@tauri-apps/api/path';
const homeDirPath = await homeDir();

1.0.0


© 2025 Tauri Contributors. CC-BY / MIT