Function xdirs::application_dir[][src]

pub fn application_dir() -> Option<PathBuf>

Returns the path to the system’s application directory.

The returned value depends on the operating system and is either a Some, containing a value from the following table, or a None.

PlatformValueExample
Linux--
macOS/Applications/Applications
Windows{FOLDERID_ProgramFiles}C:\Program Files

See also application_shared_dir, and user_application_dir.