Function simpleio::get_config
source · pub fn get_config() -> Result<PathBuf, VarError>
Expand description
Returns the config directory.
It is just home/.config.
All config files the application uses should be in home/.config/application-name.
They should NOT be writen in the home directory as it clutters up the home dir and the .config was made for these files.
However, many applications do this wrong.
Just type la
instead of ls
inside your home dir to see evidence of that.
§Example
use simpleio as sio;
println!("{:?}", sio::get_config());