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

    Function desktopDir

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

      • Linux: Resolves to xdg-user-dirs' XDG_DESKTOP_DIR.
      • macOS: Resolves to $HOME/Desktop.
      • Windows: Resolves to {FOLDERID_Desktop}.

      Returns Promise<string>

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

      1.0.0