blob: 4604c31139d8ca74ed357b11402e276441044fce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
mod args;
mod types;
pub use crate::args::*;
pub use crate::types::*;
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")
}
|