Function dirs_2::application_dir

source ·
pub fn application_dir() -> Option<PathBuf>
Expand description

Returns the path to the applications 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
Windows{FOLDERID_ProgramFiles}