Returns the path to the user's desktop directory.
xdg-user-dirs
XDG_DESKTOP_DIR
$HOME/Desktop
{FOLDERID_Desktop}
import { desktopDir } from '@tauri-apps/api/path';const desktopPath = await desktopDir(); Copy
import { desktopDir } from '@tauri-apps/api/path';const desktopPath = await desktopDir();
1.0.0
Returns the path to the user's desktop directory.
Platform-specific
xdg-user-dirs
'XDG_DESKTOP_DIR
.$HOME/Desktop
.{FOLDERID_Desktop}
.