Merge pull request #362 from kdheepak/use-data-instead-of-config-folder

Use data instead of config
This commit is contained in:
Dheepak Krishnamurthy 2022-01-10 13:36:49 -07:00 committed by GitHub
commit b6ee80d80f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ impl HistoryContext {
let data_path = if let Ok(s) = std::env::var("TASKWARRIOR_TUI_DATA") {
PathBuf::from(s)
} else {
dirs::config_dir()
dirs::data_dir()
.map(|d| d.join("taskwarrior-tui"))
.expect("Unable to create configuration directory for taskwarrior-tui")
};