docs: correct path for desktop_dir, closes #5267 (#5268)

This commit is contained in:
Caesar Schinas
2022-09-28 15:36:15 +01:00
committed by GitHub
parent 3baa6ac9b8
commit 08a44490d7
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -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