Function xdirs::user_app_container_dir_for [−][src]
pub fn user_app_container_dir_for(app: &str) -> Option<PathBuf>
Returns the path to the application container directory, for a given user application name.
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/{app} | /Applications/MyApp.app |
Windows | - | - |