Tauri Core API - v2.6.0
    Preparing search index...

    Function runtimeDir

    • Returns the path to the user's runtime directory.

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

      Returns Promise<string>

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

      1.0.0