From 08a44490d720d0cb2792e6fed464c45b77ff21f0 Mon Sep 17 00:00:00 2001 From: Caesar Schinas Date: Wed, 28 Sep 2022 15:36:15 +0100 Subject: [PATCH] docs: correct path for desktop_dir, closes #5267 (#5268) --- core/tauri/src/api/path.rs | 2 +- tooling/api/src/path.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tauri/src/api/path.rs b/core/tauri/src/api/path.rs index 621a2dbfe..fc744ba54 100644 --- a/core/tauri/src/api/path.rs +++ b/core/tauri/src/api/path.rs @@ -336,7 +336,7 @@ pub fn local_data_dir() -> Option { /// ## Platform-specific /// /// - **Linux:** Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_DESKTOP_DIR`. -/// - **macOS:** Resolves to `$HOME/Library/Desktop`. +/// - **macOS:** Resolves to `$HOME/Desktop`. /// - **Windows:** Resolves to `{FOLDERID_Desktop}`. pub fn desktop_dir() -> Option { dirs_next::desktop_dir() diff --git a/tooling/api/src/path.ts b/tooling/api/src/path.ts index cd2235608..b73e34e59 100644 --- a/tooling/api/src/path.ts +++ b/tooling/api/src/path.ts @@ -163,7 +163,7 @@ async function dataDir(): Promise { * #### Platform-specific * * - **Linux:** Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_DESKTOP_DIR`. - * - **macOS:** Resolves to `$HOME/Library/Desktop`. + * - **macOS:** Resolves to `$HOME/Desktop`. * - **Windows:** Resolves to `{FOLDERID_Desktop}`. * @example * ```typescript