Function dirs::executable_dir[][src]

pub fn executable_dir() -> Option<PathBuf>

Returns the path to the user’s executable 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$XDG_BIN_HOME or $XDG_DATA_HOME/../bin or $HOME/.local/bin/home/alice/.local/bin
macOS
Windows