blob: 90cee5e0ff7fb2ad808b1b158010ee04a10ba3ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use std::path::PathBuf;
pub fn ndpm_ai_home() -> PathBuf {
let home = std::env::var("HOME").expect("HOME not set");
PathBuf::from(home).join(".local/share/ndpm-appimage")
}
pub fn index_dir() -> PathBuf {
ndpm_ai_home().join("index")
}
pub fn appimages_dir() -> PathBuf {
ndpm_ai_home().join("appimages")
}
|