Skip to content

Commit

Permalink
docs: correct path for desktop_dir, closes #5267 (#5268)
Browse files Browse the repository at this point in the history
  • Loading branch information
caesar committed Sep 28, 2022
1 parent 3baa6ac commit 08a4449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/tauri/src/api/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ pub fn local_data_dir() -> Option<PathBuf> {
/// ## 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<PathBuf> {
dirs_next::desktop_dir()
Expand Down
2 changes: 1 addition & 1 deletion tooling/api/src/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async function dataDir(): Promise<string> {
* #### 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
Expand Down

0 comments on commit 08a4449

Please sign in to comment.