example of XDG_DATA_HOME

This commit is contained in:
Volodymyr Patuta 2020-12-12 16:01:40 +01:00
parent 1e4b9144d5
commit 64817d4bfa
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ fn check() -> Result<()> {
let data_home = std::env::var("XDG_DATA_HOME").unwrap_or("".to_owned());
if editor.is_empty() || data_home.is_empty() {
Err(anyhow!(
"Please make sure variables EDITOR and XDG_DATA_HOME are set."
"Please make sure variables EDITOR and XDG_DATA_HOME are set.\n\n\texport XDG_DATA_HOME=\"$HOME/.local/share\""
))
} else {
Ok(())