pub fn desktop_dir() -> Option<PathBuf>
Expand description

Returns the path to the user’s desktop directory.

Platform-specific

  • Linux: Resolves to xdg-user-dirsXDG_DESKTOP_DIR.
  • macOS: Resolves to $HOME/Library/Desktop.
  • Windows: Resolves to {FOLDERID_Desktop}.