localDataDir
localDataDir():
Promise
<string
>
Defined in: path.ts:418
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}
.
Promise
<string
>
import { localDataDir } from '@tauri-apps/api/path';const localDataDirPath = await localDataDir();
1.0.0
© 2025 Tauri Contributors. CC-BY / MIT