Function xdirs::user_application_dir [−][src]
pub fn user_application_dir() -> Option<PathBuf>
Returns the path to the user’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
.
Platform | Value | Example |
---|---|---|
Linux | - | - |
macOS | $HOME /Applications | /Users/Alice/Applications |
Windows | {FOLDERID_ProgramFilesCommon} | C:\Program Files\Common Files |
See also application_dir
and
application_shared_dir
.