Returns the path to the user's runtime directory.
$XDG_RUNTIME_DIR
import { runtimeDir } from '@tauri-apps/api/path';const runtimeDirPath = await runtimeDir(); Copy
import { runtimeDir } from '@tauri-apps/api/path';const runtimeDirPath = await runtimeDir();
1.0.0
Returns the path to the user's runtime directory.
Platform-specific
$XDG_RUNTIME_DIR
.