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

    Function localDataDir

    • Returns the path to the user's local data directory.

      • Linux: Resolves to $XDG_DATA_HOME or $HOME/.local/share.
      • macOS: Resolves to $HOME/Library/Application Support.
      • Windows: Resolves to {FOLDERID_LocalAppData}.

      Returns Promise<string>

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

      1.0.0