Skip to content
Tauri

runtimeDir

runtimeDir(): Promise<string>

Defined in: path.ts:538

Returns the path to the user’s runtime directory.

  • Linux: Resolves to $XDG_RUNTIME_DIR.
  • macOS: Not supported.
  • Windows: Not supported.

Promise<string>

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

1.0.0


© 2025 Tauri Contributors. CC-BY / MIT