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